mirror of
https://github.com/torvalds/linux
synced 2024-10-26 21:29:56 +00:00
ae03c49964
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>
37 lines
846 B
C
37 lines
846 B
C
#ifndef _ASM_X86_BOOT_H
|
|
#define _ASM_X86_BOOT_H
|
|
|
|
/* Don't touch these, unless you really know what you're doing. */
|
|
#define DEF_SYSSEG 0x1000
|
|
#define DEF_SYSSIZE 0x7F00
|
|
|
|
/* Internal svga startup constants */
|
|
#define NORMAL_VGA 0xffff /* 80x25 mode */
|
|
#define EXTENDED_VGA 0xfffe /* 80x50 mode */
|
|
#define ASK_VGA 0xfffd /* ask for it at bootup */
|
|
|
|
/* Physical address where kernel should be loaded. */
|
|
#define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
|
|
+ (CONFIG_PHYSICAL_ALIGN - 1)) \
|
|
& ~(CONFIG_PHYSICAL_ALIGN - 1))
|
|
|
|
#if (defined CONFIG_KERNEL_BZIP2)
|
|
#define BOOT_HEAP_SIZE 0x400000
|
|
#else
|
|
|
|
#ifdef CONFIG_X86_64
|
|
#define BOOT_HEAP_SIZE 0x7000
|
|
#else
|
|
#define BOOT_HEAP_SIZE 0x4000
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_X86_64
|
|
#define BOOT_STACK_SIZE 0x4000
|
|
#else
|
|
#define BOOT_STACK_SIZE 0x1000
|
|
#endif
|
|
|
|
#endif /* _ASM_X86_BOOT_H */
|