2006-04-11 13:24:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
2006-07-23 19:37:44 +02:00
|
|
|
|
|
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
|
|
|
|
|
2013-11-12 15:10:22 -08:00
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
2009-02-19 13:43:51 -08:00
|
|
|
|
2013-11-12 15:10:22 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
decompressors: add boot-time XZ support
This implements the API defined in <linux/decompress/generic.h> which is
used for kernel, initramfs, and initrd decompression. This patch together
with the first patch is enough for XZ-compressed initramfs and initrd;
XZ-compressed kernel will need arch-specific changes.
The buffering requirements described in decompress_unxz.c are stricter
than with gzip, so the relevant changes should be done to the
arch-specific code when adding support for XZ-compressed kernel.
Similarly, the heap size in arch-specific pre-boot code may need to be
increased (30 KiB is enough).
The XZ decompressor needs memmove(), memeq() (memcmp() == 0), and
memzero() (memset(ptr, 0, size)), which aren't available in all
arch-specific pre-boot environments. I'm including simple versions in
decompress_unxz.c, but a cleaner solution would naturally be nicer.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-12 17:01:23 -08:00
|
|
|
|
2013-11-12 15:10:22 -08:00
|
|
|
|
decompressors: add boot-time XZ support
This implements the API defined in <linux/decompress/generic.h> which is
used for kernel, initramfs, and initrd decompression. This patch together
with the first patch is enough for XZ-compressed initramfs and initrd;
XZ-compressed kernel will need arch-specific changes.
The buffering requirements described in decompress_unxz.c are stricter
than with gzip, so the relevant changes should be done to the
arch-specific code when adding support for XZ-compressed kernel.
Similarly, the heap size in arch-specific pre-boot code may need to be
increased (30 KiB is enough).
The XZ decompressor needs memmove(), memeq() (memcmp() == 0), and
memzero() (memset(ptr, 0, size)), which aren't available in all
arch-specific pre-boot environments. I'm including simple versions in
decompress_unxz.c, but a cleaner solution would naturally be nicer.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-12 17:01:23 -08:00
|
|
|
|
2010-05-26 14:44:28 -07:00
|
|
|
|
2013-11-12 15:10:22 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-26 14:44:28 -07:00
|
|
|
|
2010-09-17 15:24:09 -07:00
|
|
|
|
|
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
2010-09-17 15:24:09 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-09-17 15:24:09 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-11-25 11:09:18 -08:00
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
|
|
|
|
|
2006-06-09 21:24:14 +04:00
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-11-12 15:10:22 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-08-07 20:58:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
|
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|
2009-01-07 00:10:27 -08:00
|
|
|
|
|
|
|
|
|
2006-04-11 13:24:32 +02:00
|
|
|
|