diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-05-18 04:18:57 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 04:55:11 -0400 |
commit | a4c81cf684350797939416c99effb9d3ae46bca6 (patch) | |
tree | 93f58c28e1dae637a5bb9fd6166968808f10e472 /include/asm-x86 | |
parent | 69c9189320c46b14e5ae3ad4b3a0d35cc63cba20 (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.h | 6 | ||||
-rw-r--r-- | include/asm-x86/e820_64.h | 9 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 1 |
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, | |||
70 | extern void update_e820(void); | 70 | extern void update_e820(void); |
71 | extern void e820_setup_gap(void); | 71 | extern void e820_setup_gap(void); |
72 | 72 | ||
73 | extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); | ||
74 | extern u64 find_e820_area_size(u64 start, u64 *sizep, u64 align); | ||
75 | extern void reserve_early(u64 start, u64 end, char *name); | ||
76 | extern void free_early(u64 start, u64 end); | ||
77 | extern 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__ |
17 | extern unsigned long find_e820_area(unsigned long start, unsigned long end, | ||
18 | unsigned long size, unsigned long align); | ||
19 | extern unsigned long find_e820_area_size(unsigned long start, | ||
20 | unsigned long *sizep, | ||
21 | unsigned long align); | ||
22 | extern void setup_memory_region(void); | 17 | extern void setup_memory_region(void); |
23 | extern void contig_e820_setup(void); | 18 | extern void contig_e820_setup(void); |
24 | extern unsigned long e820_end_of_ram(void); | 19 | extern 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 | ||
36 | extern void finish_e820_parsing(void); | 31 | extern void finish_e820_parsing(void); |
37 | 32 | ||
38 | extern void reserve_early(unsigned long start, unsigned long end, char *name); | ||
39 | extern void free_early(unsigned long start, unsigned long end); | ||
40 | extern 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); | |||
201 | extern void cpu_uninit(void); | 201 | extern void cpu_uninit(void); |
202 | #endif | 202 | #endif |
203 | 203 | ||
204 | extern void smp_alloc_memory(void); | ||
205 | extern void lock_ipi_call_lock(void); | 204 | extern void lock_ipi_call_lock(void); |
206 | extern void unlock_ipi_call_lock(void); | 205 | extern void unlock_ipi_call_lock(void); |
207 | #endif /* __ASSEMBLY__ */ | 206 | #endif /* __ASSEMBLY__ */ |