diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-25 01:14:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 07:10:38 -0400 |
commit | c987d12f8455b19b3b057d63bac3de161bd809fc (patch) | |
tree | eb42d14516ea0d24d023d00ed0100cbee42df28c /include/asm-x86 | |
parent | f47f9d538ecc938bed589e9d39ad7b454f3b506c (diff) |
x86: remove end_pfn in 64bit
and use max_pfn directly.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-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 | ||