]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[uheap] Add a generic external heap based on the system memory map
authorMichael Brown <mcb30@ipxe.org>
Mon, 19 May 2025 15:11:59 +0000 (16:11 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 19 May 2025 18:36:25 +0000 (19:36 +0100)
commit4d560af2b0261b2954efba384f32035e6150987c
tree5fe9ed2e2039749055b40baf7bec249ed98f7e3a
parent490f1ecad8ddf2f6135d0926aef240dbb3026be9
[uheap] Add a generic external heap based on the system memory map

Add an implementation of umalloc() using the generalised model of a
heap, placing the external heap in the largest usable region obtained
from the system memory map.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/memmap.c
src/core/uheap.c [new file with mode: 0644]
src/include/ipxe/memmap.h
src/include/ipxe/uheap.h [new file with mode: 0644]
src/include/ipxe/umalloc.h