diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/page_64.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h index ac37643078e7..cac5b9e78265 100644 --- a/include/asm-x86/page_64.h +++ b/include/asm-x86/page_64.h | |||
@@ -58,7 +58,8 @@ | |||
58 | void clear_page(void *page); | 58 | void clear_page(void *page); |
59 | void copy_page(void *to, void *from); | 59 | void copy_page(void *to, void *from); |
60 | 60 | ||
61 | extern unsigned long end_pfn; | 61 | /* duplicated to the one in bootmem.h */ |
62 | extern unsigned long max_pfn; | ||
62 | extern unsigned long phys_base; | 63 | extern unsigned long phys_base; |
63 | 64 | ||
64 | extern unsigned long __phys_addr(unsigned long); | 65 | extern unsigned long __phys_addr(unsigned long); |
@@ -87,7 +88,7 @@ extern void initmem_init(unsigned long start_pfn, unsigned long end_pfn); | |||
87 | #endif /* !__ASSEMBLY__ */ | 88 | #endif /* !__ASSEMBLY__ */ |
88 | 89 | ||
89 | #ifdef CONFIG_FLATMEM | 90 | #ifdef CONFIG_FLATMEM |
90 | #define pfn_valid(pfn) ((pfn) < end_pfn) | 91 | #define pfn_valid(pfn) ((pfn) < max_pfn) |
91 | #endif | 92 | #endif |
92 | 93 | ||
93 | 94 | ||