aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/e820.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/e820.h')
-rw-r--r--include/asm-x86/e820.h11
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 */
63extern struct e820map e820; 64extern struct e820map e820;
64extern struct e820map e820_saved; 65extern 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
94extern void early_memtest(unsigned long start, unsigned long end);
95#else
96static inline void early_memtest(unsigned long start, unsigned long end)
97{
98}
99#endif
100
92extern unsigned long end_user_pfn; 101extern unsigned long end_user_pfn;
93 102
94extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); 103extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align);
@@ -115,7 +124,7 @@ extern void setup_memory_map(void);
115extern char *default_machine_specific_memory_setup(void); 124extern char *default_machine_specific_memory_setup(void);
116extern char *machine_specific_memory_setup(void); 125extern char *machine_specific_memory_setup(void);
117extern char *memory_setup(void); 126extern 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