]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[multiboot] Place multiboot modules low in memory
authorMichael Brown <mcb30@ipxe.org>
Sun, 15 Apr 2012 00:35:39 +0000 (01:35 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 19 Apr 2012 12:13:32 +0000 (13:13 +0100)
commit62eb2294f002f16af0af9e4f623dd03c67e8cf4a
treed53ad830ef26e029d01cf452e00851fce6417d8a
parent2a0154db5b9a7d60aa363d48d441bf1bfe4ca7ad
[multiboot] Place multiboot modules low in memory

Solaris assumes that there is enough space above the Multiboot modules
to use as a decompression and scratch area.  This assumption is
invalid when using iPXE, which places the Multiboot modules near the
top of (32-bit) memory.

Fix by copying the modules to an area of memory immediately following
the loaded kernel.

Debugged-by: Michael Brown <mcb30@ipxe.org>
Debugged-by: Scott McWhirter <scottm@joyent.com>
Tested-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/image/elfboot.c
src/arch/i386/image/multiboot.c
src/image/elf.c
src/include/ipxe/elf.h