aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/page.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:34:05 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:05 -0500
commitf87519e8f4f1de9b39a40e56479a7ad2443169dd (patch)
treea7397b18ae3dadde8ec6c173ffcae3948b971c44 /include/asm-x86/page.h
parent3cbd09e482ade50d212511d4693bd754d4d9dd55 (diff)
x86: introduce max_pfn_mapped
64bit uses end_pfn_map and 32bit uses max_low_pfn. There are several files which have #ifdef'ed defines which map either to end_pfn_map or max_low_pfn. Replace this by a universal define and clean up all the other instances. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/page.h')
-rw-r--r--include/asm-x86/page.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h
index eba88d940092..e2c79d8dcdcf 100644
--- a/include/asm-x86/page.h
+++ b/include/asm-x86/page.h
@@ -33,8 +33,10 @@
33 33
34#ifdef CONFIG_X86_64 34#ifdef CONFIG_X86_64
35#include <asm/page_64.h> 35#include <asm/page_64.h>
36#define max_pfn_mapped end_pfn_map
36#else 37#else
37#include <asm/page_32.h> 38#include <asm/page_32.h>
39#define max_pfn_mapped max_low_pfn
38#endif /* CONFIG_X86_64 */ 40#endif /* CONFIG_X86_64 */
39 41
40#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) 42#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)