x86: fix pte_modify() bug
[sfrench/cifs-2.6.git] / include / asm-x86 / page.h
index 3a00d0d9dfd35c154894809d4a1dcc24fc83395a..91920565a575d5377961b2d8497bcbb0106cc6f8 100644 (file)
@@ -11,7 +11,7 @@
 #ifdef __KERNEL__
 
 #define PHYSICAL_PAGE_MASK     (PAGE_MASK & __PHYSICAL_MASK)
-#define PTE_MASK               PHYSICAL_PAGE_MASK
+#define PTE_MASK               (_AT(long, PHYSICAL_PAGE_MASK))
 
 #define LARGE_PAGE_SIZE                (_AC(1,UL) << PMD_SHIFT)
 #define LARGE_PAGE_MASK                (~(LARGE_PAGE_SIZE-1))