aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/boot.h
diff options
context:
space:
mode:
authorAlain Knaff <alain@knaff.lu>2009-01-04 16:46:17 -0500
committerH. Peter Anvin <hpa@zytor.com>2009-01-04 18:53:35 -0500
commitae03c49964af5033534e518eebe439c3b90f43a7 (patch)
treef1de0a492c58017666b4fa56d29e7322645478d9 /arch/x86/include/asm/boot.h
parentb172fd882d201cf8aa67cddd9c1a023421fd4956 (diff)
bzip2/lzma: x86 kernel compression support
Impact: Replaces x86 kernel decompressor with new code This is the third part of the bzip2/lzma patch The bzip patch is based on an idea by Christian Ludwig, includes support for compressing the kernel with bzip2 or lzma rather than gzip. Both compressors give smaller sizes than gzip. Lzma's decompresses faster than bzip2. It also supports ramdisks and initramfs' compressed using these two compressors. The functionality has been successfully used for a couple of years by the udpcast project This version applies to "tip" kernel 2.6.28 This part contains: - support for new bzip2 and lzma kernel compression for x86 Signed-off-by: Alain Knaff <alain@knaff.lu> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/boot.h')
-rw-r--r--arch/x86/include/asm/boot.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/x86/include/asm/boot.h b/arch/x86/include/asm/boot.h
index dd61616cb73d..c0e8e68a31fb 100644
--- a/arch/x86/include/asm/boot.h
+++ b/arch/x86/include/asm/boot.h
@@ -15,11 +15,21 @@
15 + (CONFIG_PHYSICAL_ALIGN - 1)) \ 15 + (CONFIG_PHYSICAL_ALIGN - 1)) \
16 & ~(CONFIG_PHYSICAL_ALIGN - 1)) 16 & ~(CONFIG_PHYSICAL_ALIGN - 1))
17 17
18#if (defined CONFIG_KERNEL_BZIP2)
19#define BOOT_HEAP_SIZE 0x400000
20#else
21
18#ifdef CONFIG_X86_64 22#ifdef CONFIG_X86_64
19#define BOOT_HEAP_SIZE 0x7000 23#define BOOT_HEAP_SIZE 0x7000
20#define BOOT_STACK_SIZE 0x4000
21#else 24#else
22#define BOOT_HEAP_SIZE 0x4000 25#define BOOT_HEAP_SIZE 0x4000
26#endif
27
28#endif
29
30#ifdef CONFIG_X86_64
31#define BOOT_STACK_SIZE 0x4000
32#else
23#define BOOT_STACK_SIZE 0x1000 33#define BOOT_STACK_SIZE 0x1000
24#endif 34#endif
25 35