summaryrefslogtreecommitdiff
path: root/core/init.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-23 22:32:32 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-23 22:32:32 -0800
commite0e20f0ab948e372444c748ffbef65a30aafe4f8 (patch)
tree67820846d529a75107014bb4ee660cde70b2464d /core/init.inc
parent1115737d431cf3b6a02faa90a0971bf91bef2370 (diff)
downloadsyslinux-e0e20f0ab948e372444c748ffbef65a30aafe4f8.tar.gz
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 <hpa@zytor.com>
Diffstat (limited to 'core/init.inc')
-rw-r--r--core/init.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/init.inc b/core/init.inc
index 90c0293b..e06ca96f 100644
--- a/core/init.inc
+++ b/core/init.inc
@@ -65,8 +65,8 @@ check_escapes:
; segment for COMBOOT images, which can use all 64K
;
int 12h
- mov dx,real_mode_seg + 0x1000
- shr dx,6
+ mov edx,__lowmem_heap + min_lowmem_heap + 1023
+ shr edx,10
cmp ax,dx
jae enough_ram
mov ax,dx