aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-20 14:26:09 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-05-20 14:26:09 -0400
commitc6ac4c18fbc92a26df71ece609b082bc3099676b (patch)
tree577533e27b1217800b44ee43d7d4870f46be3e8e /arch
parentc4f68236e41641494f9c8a418ccc0678c335bbb5 (diff)
x86, boot: correct the calculation of ZO_INIT_SIZE
Correct the calculation of ZO_INIT_SIZE (the amount of memory we need during decompression). One symbol (ZO_startup_32) was missing from zoffset.h, and another (ZO_z_extract_offset) was misspelled. [ Impact: build fix ] Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/boot/Makefile2
-rw-r--r--arch/x86/boot/header.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
index 75e0301fc69a..619d297aa2ba 100644
--- a/arch/x86/boot/Makefile
+++ b/arch/x86/boot/Makefile
@@ -95,7 +95,7 @@ targets += voffset.h
95$(obj)/voffset.h: vmlinux FORCE 95$(obj)/voffset.h: vmlinux FORCE
96 $(call if_changed,voffset) 96 $(call if_changed,voffset)
97 97
98sed-zoffset := -e 's/^\([0-9a-fA-F]*\) . \(input_data\|_end\|z_.*\)$$/\#define ZO_\2 0x\1/p' 98sed-zoffset := -e 's/^\([0-9a-fA-F]*\) . \(startup_32\|input_data\|_end\|z_.*\)$$/\#define ZO_\2 0x\1/p'
99 99
100quiet_cmd_zoffset = ZOFFSET $@ 100quiet_cmd_zoffset = ZOFFSET $@
101 cmd_zoffset = $(NM) $< | sed -n $(sed-zoffset) > $@ 101 cmd_zoffset = $(NM) $< | sed -n $(sed-zoffset) > $@
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
index 68c3bfbaff24..1040f6e8010c 100644
--- a/arch/x86/boot/header.S
+++ b/arch/x86/boot/header.S
@@ -226,7 +226,7 @@ setup_data: .quad 0 # 64-bit physical pointer to
226 226
227pref_address: .quad LOAD_PHYSICAL_ADDR # preferred load addr 227pref_address: .quad LOAD_PHYSICAL_ADDR # preferred load addr
228 228
229#define ZO_INIT_SIZE (ZO__end - ZO_startup_32 + ZO_extract_offset) 229#define ZO_INIT_SIZE (ZO__end - ZO_startup_32 + ZO_z_extract_offset)
230#define VO_INIT_SIZE (VO__end - VO__text) 230#define VO_INIT_SIZE (VO__end - VO__text)
231#if ZO_INIT_SIZE > VO_INIT_SIZE 231#if ZO_INIT_SIZE > VO_INIT_SIZE
232#define INIT_SIZE ZO_INIT_SIZE 232#define INIT_SIZE ZO_INIT_SIZE