aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-05-18 04:18:57 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 04:55:11 -0400
commita4c81cf684350797939416c99effb9d3ae46bca6 (patch)
tree93f58c28e1dae637a5bb9fd6166968808f10e472 /include/asm-x86
parent69c9189320c46b14e5ae3ad4b3a0d35cc63cba20 (diff)
x86: extend e820 ealy_res support 32bit
move early_res related from e820_64.c to e820.c make edba detection to be done in head32.c remove smp_alloc_memory, because we have fixed trampoline address now. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> arch/x86/kernel/e820.c | 214 ++++++++++++++++++++++++++++++++++++ arch/x86/kernel/e820_64.c | 196 -------------------------------- arch/x86/kernel/head32.c | 76 ++++++++++++ arch/x86/kernel/setup_32.c | 109 +++--------------- arch/x86/kernel/smpboot.c | 17 -- arch/x86/kernel/trampoline.c | 2 arch/x86/mach-voyager/voyager_smp.c | 9 - include/asm-x86/e820.h | 6 + include/asm-x86/e820_64.h | 9 - include/asm-x86/smp.h | 1 arch/x86/kernel/e820.c | 214 ++++++++++++++++++++++++++++++++++++ arch/x86/kernel/e820_64.c | 196 -------------------------------- arch/x86/kernel/head32.c | 76 ++++++++++++ arch/x86/kernel/setup_32.c | 109 +++--------------- arch/x86/kernel/smpboot.c | 17 -- arch/x86/kernel/trampoline.c | 2 arch/x86/mach-voyager/voyager_smp.c | 9 - include/asm-x86/e820.h | 6 + include/asm-x86/e820_64.h | 9 - include/asm-x86/smp.h | 1 arch/x86/kernel/e820.c | 214 ++++++++++++++++++++++++++++++++++++ arch/x86/kernel/e820_64.c | 196 -------------------------------- arch/x86/kernel/head32.c | 76 ++++++++++++ arch/x86/kernel/setup_32.c | 109 +++--------------- arch/x86/kernel/smpboot.c | 17 -- arch/x86/kernel/trampoline.c | 2 arch/x86/mach-voyager/voyager_smp.c | 9 - include/asm-x86/e820.h | 6 + include/asm-x86/e820_64.h | 9 - include/asm-x86/smp.h | 1 10 files changed, 320 insertions(+), 319 deletions(-) Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/e820.h6
-rw-r--r--include/asm-x86/e820_64.h9
-rw-r--r--include/asm-x86/smp.h1
3 files changed, 6 insertions, 10 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h
index 1eb13b881437..5a58e2bb1d78 100644
--- a/include/asm-x86/e820.h
+++ b/include/asm-x86/e820.h
@@ -70,6 +70,12 @@ extern u64 update_memory_range(u64 start, u64 size, unsigned old_type,
70extern void update_e820(void); 70extern void update_e820(void);
71extern void e820_setup_gap(void); 71extern void e820_setup_gap(void);
72 72
73extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align);
74extern u64 find_e820_area_size(u64 start, u64 *sizep, u64 align);
75extern void reserve_early(u64 start, u64 end, char *name);
76extern void free_early(u64 start, u64 end);
77extern void early_res_to_bootmem(u64 start, u64 end);
78
73#endif /* __ASSEMBLY__ */ 79#endif /* __ASSEMBLY__ */
74 80
75#define ISA_START_ADDRESS 0xa0000 81#define ISA_START_ADDRESS 0xa0000
diff --git a/include/asm-x86/e820_64.h b/include/asm-x86/e820_64.h
index 9fac77e01441..37f176a02bc6 100644
--- a/include/asm-x86/e820_64.h
+++ b/include/asm-x86/e820_64.h
@@ -14,11 +14,6 @@
14#include <linux/ioport.h> 14#include <linux/ioport.h>
15 15
16#ifndef __ASSEMBLY__ 16#ifndef __ASSEMBLY__
17extern unsigned long find_e820_area(unsigned long start, unsigned long end,
18 unsigned long size, unsigned long align);
19extern unsigned long find_e820_area_size(unsigned long start,
20 unsigned long *sizep,
21 unsigned long align);
22extern void setup_memory_region(void); 17extern void setup_memory_region(void);
23extern void contig_e820_setup(void); 18extern void contig_e820_setup(void);
24extern unsigned long e820_end_of_ram(void); 19extern unsigned long e820_end_of_ram(void);
@@ -35,10 +30,6 @@ extern void e820_register_active_regions(int nid, unsigned long start_pfn,
35 30
36extern void finish_e820_parsing(void); 31extern void finish_e820_parsing(void);
37 32
38extern void reserve_early(unsigned long start, unsigned long end, char *name);
39extern void free_early(unsigned long start, unsigned long end);
40extern void early_res_to_bootmem(unsigned long start, unsigned long end);
41
42#endif/*!__ASSEMBLY__*/ 33#endif/*!__ASSEMBLY__*/
43 34
44#endif/*__E820_HEADER*/ 35#endif/*__E820_HEADER*/
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h
index 1ebaa5cd3112..514e52b95cef 100644
--- a/include/asm-x86/smp.h
+++ b/include/asm-x86/smp.h
@@ -201,7 +201,6 @@ extern void cpu_exit_clear(void);
201extern void cpu_uninit(void); 201extern void cpu_uninit(void);
202#endif 202#endif
203 203
204extern void smp_alloc_memory(void);
205extern void lock_ipi_call_lock(void); 204extern void lock_ipi_call_lock(void);
206extern void unlock_ipi_call_lock(void); 205extern void unlock_ipi_call_lock(void);
207#endif /* __ASSEMBLY__ */ 206#endif /* __ASSEMBLY__ */