]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/pgtable-4k.h
PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures
[linux-2.6] / include / asm-powerpc / pgtable-4k.h
index 818e2abc81e2ee435c82854b1abdbcceb29ffcfc..c9601dfb4a1e101547d7b8e00272a44b6ffd1922 100644 (file)
@@ -41,6 +41,7 @@
 #define PGDIR_MASK     (~(PGDIR_SIZE-1))
 
 /* PTE bits */
+#define _PAGE_HASHPTE  0x0400 /* software: pte has an associated HPTE */
 #define _PAGE_SECONDARY 0x8000 /* software: HPTE is in secondary group */
 #define _PAGE_GROUP_IX  0x7000 /* software: HPTE index within group */
 #define _PAGE_F_SECOND  _PAGE_SECONDARY
@@ -50,6 +51,9 @@
 #define _PAGE_HPTEFLAGS (_PAGE_BUSY | _PAGE_HASHPTE | \
                         _PAGE_SECONDARY | _PAGE_GROUP_IX)
 
+/* There is no 4K PFN hack on 4K pages */
+#define _PAGE_4K_PFN   0
+
 /* PAGE_MASK gives the right answer below, but only by accident */
 /* It should be preserving the high 48 bits and then specifically */
 /* preserving _PAGE_SECONDARY | _PAGE_GROUP_IX */