powerpc: Add simple memory allocator to bootwrapper
PATCH 4/4 powerpc: Add simple memory allocator to bootwrapper
Provide primitive malloc, free, and realloc functions for bootwrapper.
Signed-off-by Mark A. Greer <[email protected]>
---
This is a replacement patch for [PATCH 3/4]
---
Makefile | 2 simple_alloc.c | 149 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 1 deletion(-)
---
arch/powerpc/boot/Makefile +1 -1
@@ -41,7 +41,7 @@ zliblinuxheader := zlib.h zconf.h zutil. $(addprefix $(obj)/,$(zlibheader)) src-wlib := string.S stdio.c main.c flatdevtree.c flatdevtree_misc.c ns16550.c \ - serial.c div64.S util.S $(zlib) + serial.c simple_alloc.c div64.S util.S $(zlib) src-plat := of.c src-boot := crt0.S $(src-wlib) $(src-plat) empty.c
arch/powerpc/boot/simple_alloc.c new file +149 -0
149 lines not on this page · raw message