From be65e736d7ce7b1961bab7000eb7789c8ba35ef3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 2 Jun 2009 16:44:41 -0700 Subject: 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 --- core/init.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/init.inc') 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 -- cgit v1.2.1