]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: page.h: move and unify types for pagetable entry, #1
authorIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:42 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:42 +0000 (13:32 +0100)
based on:

 Subject: x86: page.h: move and unify types for pagetable entry
 From: Jeremy Fitzhardinge <jeremy@goop.org>

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/page.h

index 2ebb6977e00ce2c551c0d07784521f4ee1dc462d..911d7e0b3cd9c0db77504e9ccc6606bba8da51e7 100644 (file)
@@ -9,6 +9,7 @@
 #define PAGE_MASK      (~(PAGE_SIZE-1))
 
 #define PHYSICAL_PAGE_MASK     (PAGE_MASK & __PHYSICAL_MASK)
+#define PTE_MASK               PHYSICAL_PAGE_MASK
 
 #define LARGE_PAGE_SIZE                (_AC(1,UL) << PMD_SHIFT)
 #define LARGE_PAGE_MASK                (~(LARGE_PAGE_SIZE-1))
 #define __PHYSICAL_MASK                ((_AC(1,UL) << __PHYSICAL_MASK_SHIFT) - 1)
 #define __VIRTUAL_MASK         ((_AC(1,UL) << __VIRTUAL_MASK_SHIFT) - 1)
 
+#ifndef __ASSEMBLY__
+#include <linux/types.h>
+#endif
 
 #ifdef CONFIG_X86_64
+#define PAGETABLE_LEVELS       4
+
 #define THREAD_ORDER   1
 #define THREAD_SIZE  (PAGE_SIZE << THREAD_ORDER)
 #define CURRENT_MASK (~(THREAD_SIZE-1))