diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-06-02 16:44:41 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-02 16:44:41 -0700 |
commit | be65e736d7ce7b1961bab7000eb7789c8ba35ef3 (patch) | |
tree | 6ed6650767b459a7ad21bd5b06d544b6dde905f0 /core/init.inc | |
parent | 210395ef1babd423194a5c574b491324d567ab6b (diff) | |
download | syslinux-be65e736d7ce7b1961bab7000eb7789c8ba35ef3.tar.gz |
core: add new __lowmem macro to allocate a static lowmem buffer
Add a new __lowmem macro that can be applied to an uninitialized
static (or global) object, which allocates it in a new .lowmem section
allocated below the 1 MB boundary. Keep in mind that low memory is
precious!
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/init.inc')
-rw-r--r-- | core/init.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/init.inc b/core/init.inc index 809fa8ee..ec8c7b3b 100644 --- a/core/init.inc +++ b/core/init.inc @@ -60,7 +60,6 @@ common_init: ; The code to decompress the PM code and initialize other segments. ; extern _lzo1x_decompress_asm_fast - extern __uibss_auxseg_dwords section .textnr bits 32 @@ -83,8 +82,8 @@ pm_decompress: mov edi,__bss16_start mov ecx,__bss16_dwords rep stosd - mov edi,__uibss_start - mov ecx,__uibss_auxseg_dwords + mov edi,__high_clear_start ; .uibss, .auxseg, .lowmem + mov ecx,__high_clear_dwords rep stosd ret |