]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[romprefix] Round up PMM allocation sizes to nearest 4kB
authorMichael Brown <mcb30@ipxe.org>
Wed, 25 Jul 2012 13:32:37 +0000 (14:32 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 25 Jul 2012 13:37:43 +0000 (14:37 +0100)
commit1f88e9c8eaef91db510739b451a6837102a87f60
treeec541c28718f309a063c2d49c4e78bb92fa20250
parentced1493c021133fe34066a0e430c82ec5a5d40ff
[romprefix] Round up PMM allocation sizes to nearest 4kB

Some AMI BIOSes apparently break in exciting ways when asked for PMM
allocations for sizes that are not multiples of 4kB.

Fix by rounding up the image source area to the nearest 4kB.  (The
temporary decompression area is already rounded up to the nearest
128kB, to facilitate sharing between multiple iPXE ROMs.)

Reported-by: Itay Gazit <itayg@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/romprefix.S