]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[uheap] Prevent allocation of blocks with zero physical addresses
authorMichael Brown <mcb30@ipxe.org>
Thu, 22 May 2025 15:05:37 +0000 (16:05 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 22 May 2025 15:16:14 +0000 (16:16 +0100)
commite056041074b9ed625791d8a688ef8a8cd8e9f7fd
tree7b7a7bf986d1745064e4bdcaee5723ff0e1d657a
parentb9095a045aeebefc0beff8ea2d30d7d0b73e44a0
[uheap] Prevent allocation of blocks with zero physical addresses

If the external heap ends up at the top of the system memory map then
leave a gap after the heap to ensure that no block ends up being
allocated with either a start or end address of zero, since this is
frequently confusing to both code and humans.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/uheap.c