summaryrefslogtreecommitdiff
path: root/core/mem
Commit message (Collapse)AuthorAgeFilesLines
* core: don't bother zeroing the disk cache and heapH. Peter Anvin2010-03-061-1/+1
| | | | | | | No point in zeroing out the disk cache and the heap. Put those in a .hugebss section which we align, but don't zero. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mem: increase the heap size to 128KH. Peter Anvin2010-03-061-1/+1
| | | | | | Use 128K for the heap, to allow TFTP buffers to be allocated there. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core/mem: better dprintf()H. Peter Anvin2010-02-242-3/+4
| | | | | | | Add a few dprintf() statements to the core malloc/free which makes it easier to track down bugs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: fix lowmem mallocH. Peter Anvin2010-02-242-0/+3
| | | | | | | | | | | | a) initialize *all* the head nodes b) the lowmem heap needs to be paragraph (16 byte) aligned c) use a dedicated tag value for headnodes. The type code should be removed and replaced with special tag values for head node and free. d) for libcom32 code called from the core, do NOT present a usable bounce buffer; we should only ever use lmalloc/lfree. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: use better malloc; add low memory malloc; fix com32 exitH. Peter Anvin2010-02-234-0/+369
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 <hpa@zytor.com>