aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-25 01:14:09 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 07:10:38 -0400
commitc987d12f8455b19b3b057d63bac3de161bd809fc (patch)
treeeb42d14516ea0d24d023d00ed0100cbee42df28c /include
parentf47f9d538ecc938bed589e9d39ad7b454f3b506c (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')
-rw-r--r--include/asm-x86/page_64.h5
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 @@
58void clear_page(void *page); 58void clear_page(void *page);
59void copy_page(void *to, void *from); 59void copy_page(void *to, void *from);
60 60
61extern unsigned long end_pfn; 61/* duplicated to the one in bootmem.h */
62extern unsigned long max_pfn;
62extern unsigned long phys_base; 63extern unsigned long phys_base;
63 64
64extern unsigned long __phys_addr(unsigned long); 65extern 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