From e0e20f0ab948e372444c748ffbef65a30aafe4f8 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 23 Feb 2010 22:32:32 -0800 Subject: core: use better malloc; add low memory malloc; fix com32 exit Use a better malloc for the core. In particular, use the same core that we should eventually be able to use for the entire system in Syslinux 5 -- with module awareness, etc. This code can also accommodate multiple heaps. Set up a separate heap for lowmem; the intent is to use explicit lowmem allocations instead of the static bounce buffer. The lowmem allocation is also exported via the pmapi mechanism, so modules can safely allocate lowmem. Signed-off-by: H. Peter Anvin --- core/pmapi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/pmapi.c') diff --git a/core/pmapi.c b/core/pmapi.c index f45a7fc6..0cb664ec 100644 --- a/core/pmapi.c +++ b/core/pmapi.c @@ -19,5 +19,8 @@ const struct com32_pmapi pm_api_vector = { + .lmalloc = pmapi_lmalloc, /* Allocate low memory */ + .lfree = free, /* Free low memory */ + .read_file = pmapi_read_file, }; -- cgit v1.2.1