mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
Some scribbles on EFI compression
This commit is contained in:
1 parent
7f20dbbcd2
commit
d69064ad50
12 files changed
+391
-170
No files matched your search
@@ -22,6 +22,8 @@
|
||||
#include <grub/mm.h>
|
||||
#include <grub/misc.h>
|
||||
|
||||
#ifndef GRUB_EMBED_DECOMPRESSOR
|
||||
|
||||
static inline void
|
||||
free (void *ptr)
|
||||
{
|
||||
@@ -46,6 +48,8 @@ realloc (void *ptr, grub_size_t size)
|
||||
return grub_realloc (ptr, size);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static inline int
|
||||
abs (int c)
|
||||
{
|
||||
|
||||
@@ -91,6 +91,10 @@ enum xz_ret xz_dec_bcj_run(struct xz_dec_bcj *s,
|
||||
struct xz_dec_lzma2 *lzma2, struct xz_buf *b);
|
||||
|
||||
/* Free the memory allocated for the BCJ filters. */
|
||||
#ifndef GRUB_EMBED_DECOMPRESSOR
|
||||
#define xz_dec_bcj_end(s) kfree(s)
|
||||
#else
|
||||
#define xz_dec_bcj_end(s)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user