aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/malloc.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2025-02-03 14:43:03 +0000
committerMichael Brown <mcb30@ipxe.org>2025-02-03 14:43:03 +0000
commit77cc3ed10892f65e5b01af482b5739e29614486e (patch)
tree7f264e886288173d19ba6685dd1eae6a69e95b47 /src/include/ipxe/malloc.h
parent6f076efa650f5d8cc73bc70402b23f7066943474 (diff)
downloadipxe-77cc3ed10892f65e5b01af482b5739e29614486e.tar.gz
[malloc] Ensure free memory blocks remain aligned
When allocating memory with a non-zero alignment offset, the free memory block structure following the allocation may end up improperly aligned. Ensure that free memory blocks always remain aligned to the size of the free memory block structure. Ensure that the initial heap is also correctly aligned, thereby allowing the logic for leaking undersized free memory blocks to be omitted. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/malloc.h')
-rw-r--r--src/include/ipxe/malloc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/include/ipxe/malloc.h b/src/include/ipxe/malloc.h
index 180ca001d..f0fde0bc3 100644
--- a/src/include/ipxe/malloc.h
+++ b/src/include/ipxe/malloc.h
@@ -28,7 +28,6 @@ extern size_t maxusedmem;
extern void * __malloc alloc_memblock ( size_t size, size_t align,
size_t offset );
extern void free_memblock ( void *ptr, size_t size );
-extern void mpopulate ( void *start, size_t len );
extern void mdumpfree ( void );
/**