powerpc/book3s64/pkeys: Fixup bit numbering
[linux-2.6-block.git] / arch / powerpc / include / asm / book3s / 64 / hash-4k.h
index 3f9ae3585ab98f7343775bb756ea567fc681d46c..f889d56bf8cf98fa2d822cb787ebe29e3abcadde 100644 (file)
 #define H_PMD_FRAG_NR  (PAGE_SIZE >> H_PMD_FRAG_SIZE_SHIFT)
 
 /* memory key bits, only 8 keys supported */
-#define H_PTE_PKEY_BIT0        0
-#define H_PTE_PKEY_BIT1        0
+#define H_PTE_PKEY_BIT4        0
+#define H_PTE_PKEY_BIT3        0
 #define H_PTE_PKEY_BIT2        _RPAGE_RSV3
-#define H_PTE_PKEY_BIT3        _RPAGE_RSV4
-#define H_PTE_PKEY_BIT4        _RPAGE_RSV5
+#define H_PTE_PKEY_BIT1        _RPAGE_RSV4
+#define H_PTE_PKEY_BIT0        _RPAGE_RSV5
+
 
 /*
  * On all 4K setups, remap_4k_pfn() equates to remap_pfn_range()