To: Ingo Molnar <mingo@...>, H. Peter Anvin <hpa@...>
Cc: Alexander van Heukelum <heukelum@...>, Mike Travis <travis@...>, Thomas Gleixner <tglx@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <heukelum@...>
On Tue, Apr 8, 2008 at 1:23 AM, Ingo Molnar <mingo@elte.hu> wrote:
payload_offset and payload_length in arch/x86/boot/head.S
seems to be used by bootloader to seat the bzImage. or just use size
of bzImage
and bootloader is supposed to load bzImage from 2M, and initrd near 4G...
so if you have memhole from [2M+36M, 2M+45M), and bzImage is only 10M,
...then you will have problem.
but I assume that bootloader already used bzImage size or payload size with
extra_bytes = (uncompressed_size >> 12) + 32768 + 18 + decompressor_size.
to get unzip size for good position for bzImage.
long term, should add one field after payload_length like
payload_unzip_length to make bootloader or kexec what buffer size
needed.
YH
--