decompress_unxz.c (a02001086bbfb4da35d1228bebc2f1b442db455f) | decompress_unxz.c (2d3862d26e67a59340ba1cf1748196c76c5787de) |
---|---|
1/* 2 * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd 3 * 4 * Author: Lasse Collin <lasse.collin@tukaani.org> 5 * 6 * This file has been put into the public domain. 7 * You can do whatever you want with this file. 8 */ --- 380 unchanged lines hidden (view full) --- 389 error("XZ decompressor ran out of memory"); 390 return -1; 391} 392 393/* 394 * This macro is used by architecture-specific files to decompress 395 * the kernel image. 396 */ | 1/* 2 * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd 3 * 4 * Author: Lasse Collin <lasse.collin@tukaani.org> 5 * 6 * This file has been put into the public domain. 7 * You can do whatever you want with this file. 8 */ --- 380 unchanged lines hidden (view full) --- 389 error("XZ decompressor ran out of memory"); 390 return -1; 391} 392 393/* 394 * This macro is used by architecture-specific files to decompress 395 * the kernel image. 396 */ |
397#define decompress unxz | 397#ifdef XZ_PREBOOT 398STATIC int INIT __decompress(unsigned char *buf, long len, 399 long (*fill)(void*, unsigned long), 400 long (*flush)(void*, unsigned long), 401 unsigned char *out_buf, long olen, 402 long *pos, 403 void (*error)(char *x)) 404{ 405 return unxz(buf, len, fill, flush, out_buf, pos, error); 406} 407#endif |