[pcbios] Restrict external memory allocations to the low 4GB
authorMichael Brown <mcb30@ipxe.org>
Tue, 8 Mar 2016 13:06:06 +0000 (13:06 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 8 Mar 2016 13:25:09 +0000 (13:25 +0000)
commitd3db00ecf9f9860d8e029b22b17a5cef9dbdbc33
tree05fdec94b101b73da234ddf516469ed1fbbd3a72
parent5a7fd2cc90ef2d44527b24599d76225607be6f96
[pcbios] Restrict external memory allocations to the low 4GB

When running the 64-bit BIOS version of iPXE, restrict external memory
allocations to the low 4GB to ensure that allocations (such as for
initrds) fall within our identity-mapped memory region, and will be
accessible to the potentially 32-bit operating system.

Move largest_memblock() back to memtop_umalloc.c, since this change
imposes a restriction that applies only to BIOS builds.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/interface/pcbios/memtop_umalloc.c
src/core/memblock.c [deleted file]