diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-16 22:58:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 04:38:25 -0400 |
commit | 064d25f12014ae1d97c2882f9ab874995321f2b2 (patch) | |
tree | a6f39b226bbae5a2abc15d911cdf12d01b9c8c19 /include | |
parent | cc9f7a0ccf000d4db5fbdc7b0ae48eefea102f69 (diff) |
x86: merge setup_memory_map with e820
... and kill e820_32/64.c and e820_32/64.h
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/e820.h | 9 | ||||
-rw-r--r-- | include/asm-x86/e820_32.h | 24 | ||||
-rw-r--r-- | include/asm-x86/e820_64.h | 26 | ||||
-rw-r--r-- | include/asm-x86/setup.h | 5 |
4 files changed, 6 insertions, 58 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h index e860fe758e79..83144cb6c68d 100644 --- a/include/asm-x86/e820.h +++ b/include/asm-x86/e820.h | |||
@@ -101,6 +101,9 @@ extern void e820_register_active_regions(int nid, unsigned long start_pfn, | |||
101 | extern u64 e820_hole_size(u64 start, u64 end); | 101 | extern u64 e820_hole_size(u64 start, u64 end); |
102 | extern void finish_e820_parsing(void); | 102 | extern void finish_e820_parsing(void); |
103 | extern void e820_reserve_resources(void); | 103 | extern void e820_reserve_resources(void); |
104 | extern void setup_memory_map(void); | ||
105 | extern char *machine_specific_memory_setup(void); | ||
106 | extern char *memory_setup(void); | ||
104 | 107 | ||
105 | #endif /* __ASSEMBLY__ */ | 108 | #endif /* __ASSEMBLY__ */ |
106 | 109 | ||
@@ -111,10 +114,10 @@ extern void e820_reserve_resources(void); | |||
111 | #define BIOS_END 0x00100000 | 114 | #define BIOS_END 0x00100000 |
112 | 115 | ||
113 | #ifdef __KERNEL__ | 116 | #ifdef __KERNEL__ |
117 | #include <linux/ioport.h> | ||
118 | |||
114 | #ifdef CONFIG_X86_32 | 119 | #ifdef CONFIG_X86_32 |
115 | # include "e820_32.h" | 120 | #define HIGH_MEMORY (1024*1024) |
116 | #else | ||
117 | # include "e820_64.h" | ||
118 | #endif | 121 | #endif |
119 | #endif /* __KERNEL__ */ | 122 | #endif /* __KERNEL__ */ |
120 | 123 | ||
diff --git a/include/asm-x86/e820_32.h b/include/asm-x86/e820_32.h deleted file mode 100644 index 557b890549ff..000000000000 --- a/include/asm-x86/e820_32.h +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | /* | ||
2 | * structures and definitions for the int 15, ax=e820 memory map | ||
3 | * scheme. | ||
4 | * | ||
5 | * In a nutshell, arch/i386/boot/setup.S populates a scratch table | ||
6 | * in the empty_zero_block that contains a list of usable address/size | ||
7 | * duples. In arch/i386/kernel/setup.c, this information is | ||
8 | * transferred into the e820map, and in arch/i386/mm/init.c, that | ||
9 | * new information is used to mark pages reserved or not. | ||
10 | * | ||
11 | */ | ||
12 | #ifndef __E820_HEADER | ||
13 | #define __E820_HEADER | ||
14 | |||
15 | #include <linux/ioport.h> | ||
16 | |||
17 | #define HIGH_MEMORY (1024*1024) | ||
18 | |||
19 | #ifndef __ASSEMBLY__ | ||
20 | |||
21 | extern void setup_memory_map(void); | ||
22 | |||
23 | #endif/*!__ASSEMBLY__*/ | ||
24 | #endif/*__E820_HEADER*/ | ||
diff --git a/include/asm-x86/e820_64.h b/include/asm-x86/e820_64.h deleted file mode 100644 index 8d992109969b..000000000000 --- a/include/asm-x86/e820_64.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* | ||
2 | * structures and definitions for the int 15, ax=e820 memory map | ||
3 | * scheme. | ||
4 | * | ||
5 | * In a nutshell, setup.S populates a scratch table in the | ||
6 | * empty_zero_block that contains a list of usable address/size | ||
7 | * duples. setup.c, this information is transferred into the e820map, | ||
8 | * and in init.c/numa.c, that new information is used to mark pages | ||
9 | * reserved or not. | ||
10 | */ | ||
11 | #ifndef __E820_HEADER | ||
12 | #define __E820_HEADER | ||
13 | |||
14 | #include <linux/ioport.h> | ||
15 | |||
16 | #ifndef __ASSEMBLY__ | ||
17 | extern void setup_memory_region(void); | ||
18 | extern void contig_e820_setup(void); | ||
19 | extern int e820_any_non_reserved(unsigned long start, unsigned long end); | ||
20 | extern int is_memory_any_valid(unsigned long start, unsigned long end); | ||
21 | extern int e820_all_non_reserved(unsigned long start, unsigned long end); | ||
22 | extern int is_memory_all_valid(unsigned long start, unsigned long end); | ||
23 | |||
24 | #endif/*!__ASSEMBLY__*/ | ||
25 | |||
26 | #endif/*__E820_HEADER*/ | ||
diff --git a/include/asm-x86/setup.h b/include/asm-x86/setup.h index 9e163fc3e984..b676b0be7986 100644 --- a/include/asm-x86/setup.h +++ b/include/asm-x86/setup.h | |||
@@ -8,7 +8,6 @@ | |||
8 | /* Interrupt control for vSMPowered x86_64 systems */ | 8 | /* Interrupt control for vSMPowered x86_64 systems */ |
9 | void vsmp_init(void); | 9 | void vsmp_init(void); |
10 | 10 | ||
11 | char *machine_specific_memory_setup(void); | ||
12 | #ifndef CONFIG_PARAVIRT | 11 | #ifndef CONFIG_PARAVIRT |
13 | #define paravirt_post_allocator_init() do {} while (0) | 12 | #define paravirt_post_allocator_init() do {} while (0) |
14 | #endif | 13 | #endif |
@@ -50,10 +49,6 @@ extern struct boot_params boot_params; | |||
50 | */ | 49 | */ |
51 | #define LOWMEMSIZE() (0x9f000) | 50 | #define LOWMEMSIZE() (0x9f000) |
52 | 51 | ||
53 | char * __init machine_specific_memory_setup(void); | ||
54 | char *memory_setup(void); | ||
55 | |||
56 | |||
57 | void __init i386_start_kernel(void); | 52 | void __init i386_start_kernel(void); |
58 | 53 | ||
59 | extern unsigned long init_pg_tables_start; | 54 | extern unsigned long init_pg_tables_start; |