diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-30 07:32:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:51 -0500 |
commit | cf8fa920cb4271f17e0265c863d64bea1b31941a (patch) | |
tree | 5a036d33e78108c9a762913155823ff0c91051f5 /arch/x86/boot | |
parent | 6d7d7433750c7c6eec93d7b3206019e329228686 (diff) |
i386: handle an initrd in highmem (version 2)
The boot protocol has until now required that the initrd be located in
lowmem, which makes the lowmem/highmem boundary visible to the boot
loader. This was exported to the bootloader via a compile-time
field. Unfortunately, the vmalloc= command-line option breaks this
part of the protocol; instead of adding yet another hack that affects
the bootloader, have the kernel relocate the initrd down below the
lowmem boundary inside the kernel itself.
Note that this does not rely on HIGHMEM being enabled in the kernel.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/header.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 4cc5b0411db5..64ad9016585a 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S | |||
@@ -195,10 +195,13 @@ cmd_line_ptr: .long 0 # (Header version 0x0202 or later) | |||
195 | # can be located anywhere in | 195 | # can be located anywhere in |
196 | # low memory 0x10000 or higher. | 196 | # low memory 0x10000 or higher. |
197 | 197 | ||
198 | ramdisk_max: .long (-__PAGE_OFFSET-(512 << 20)-1) & 0x7fffffff | 198 | ramdisk_max: .long 0x7fffffff |
199 | # (Header version 0x0203 or later) | 199 | # (Header version 0x0203 or later) |
200 | # The highest safe address for | 200 | # The highest safe address for |
201 | # the contents of an initrd | 201 | # the contents of an initrd |
202 | # The current kernel allows up to 4 GB, | ||
203 | # but leave it at 2 GB to avoid | ||
204 | # possible bootloader bugs. | ||
202 | 205 | ||
203 | kernel_alignment: .long CONFIG_PHYSICAL_ALIGN #physical addr alignment | 206 | kernel_alignment: .long CONFIG_PHYSICAL_ALIGN #physical addr alignment |
204 | #required for protected mode | 207 | #required for protected mode |