diff options
Diffstat (limited to 'include/asm-x86/e820.h')
-rw-r--r-- | include/asm-x86/e820.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h index 33e793e991d0..16a31e2c7c57 100644 --- a/include/asm-x86/e820.h +++ b/include/asm-x86/e820.h | |||
@@ -59,6 +59,7 @@ struct e820map { | |||
59 | struct e820entry map[E820_X_MAX]; | 59 | struct e820entry map[E820_X_MAX]; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | #ifdef __KERNEL__ | ||
62 | /* see comment in arch/x86/kernel/e820.c */ | 63 | /* see comment in arch/x86/kernel/e820.c */ |
63 | extern struct e820map e820; | 64 | extern struct e820map e820; |
64 | extern struct e820map e820_saved; | 65 | extern struct e820map e820_saved; |
@@ -89,6 +90,14 @@ static inline void e820_mark_nosave_regions(unsigned long limit_pfn) | |||
89 | } | 90 | } |
90 | #endif | 91 | #endif |
91 | 92 | ||
93 | #ifdef CONFIG_MEMTEST | ||
94 | extern void early_memtest(unsigned long start, unsigned long end); | ||
95 | #else | ||
96 | static inline void early_memtest(unsigned long start, unsigned long end) | ||
97 | { | ||
98 | } | ||
99 | #endif | ||
100 | |||
92 | extern unsigned long end_user_pfn; | 101 | extern unsigned long end_user_pfn; |
93 | 102 | ||
94 | extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); | 103 | extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); |
@@ -115,7 +124,7 @@ extern void setup_memory_map(void); | |||
115 | extern char *default_machine_specific_memory_setup(void); | 124 | extern char *default_machine_specific_memory_setup(void); |
116 | extern char *machine_specific_memory_setup(void); | 125 | extern char *machine_specific_memory_setup(void); |
117 | extern char *memory_setup(void); | 126 | extern char *memory_setup(void); |
118 | 127 | #endif /* __KERNEL__ */ | |
119 | #endif /* __ASSEMBLY__ */ | 128 | #endif /* __ASSEMBLY__ */ |
120 | 129 | ||
121 | #define ISA_START_ADDRESS 0xa0000 | 130 | #define ISA_START_ADDRESS 0xa0000 |