]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[malloc] Allow heap to specify block and pointer alignments
authorMichael Brown <mcb30@ipxe.org>
Mon, 19 May 2025 15:07:27 +0000 (16:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 19 May 2025 18:36:23 +0000 (19:36 +0100)
commit490f1ecad8ddf2f6135d0926aef240dbb3026be9
tree6ef9987df1b567ea1ef4747daec2934c97e764e4
parentc6ca3d3af83be57da8ba63df86185dc10fe7b715
[malloc] Allow heap to specify block and pointer alignments

Size-tracked pointers allocated via umalloc() have historically been
aligned to a page boundary, as have the edges of the hidden memory
region covering the external heap.

Allow the block and size-tracked pointer alignments to be specified as
heap configuration parameters.

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