Some scribbles on EFI compression

This commit is contained in:
Vladimir Serbinenko committed 2013-11-20 00:51:03 +01:00
1 parent 7f20dbbcd2
commit d69064ad50
12 files changed
+391 -170

No files matched your search

+4
View File
@@ -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)
{
+4
View File
@@ -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