summaryrefslogtreecommitdiff
path: root/core/stack.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/stack.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/stack.inc')
-rw-r--r--core/stack.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/stack.inc b/core/stack.inc
index dc0d0175..788db647 100644
--- a/core/stack.inc
+++ b/core/stack.inc
@@ -1,7 +1,7 @@
; -----------------------------------------------------------------------
;
; Copyright 2005-2008 H. Peter Anvin - All Rights Reserved
-; Copyright 2009 Intel Corporation; author: H. Peter Anvin
+; Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
@@ -31,6 +31,7 @@
mov ds,%1
mov es,%1
lss esp,[BaseStack]
+ mov dword [PMESP],__stack_end ; Reset PM stack
sti
cld
%endmacro