core: fix lowmem malloc
authorH. Peter Anvin <hpa@zytor.com>
Wed, 24 Feb 2010 22:16:15 +0000 (14:16 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 24 Feb 2010 22:16:15 +0000 (14:16 -0800)
commit3ae1da98a68d2f719ce17766550f7e9682ba8ae7
tree84bede612442051a4f0cdf8d90e6a8913705dd61
parent4a7384712116be8b1888b470a4126c193cb5e80b
core: fix lowmem malloc

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/com32.inc
core/mem/init.c
core/mem/malloc.h
core/syslinux.ld