summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pte-fsl-booke.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-03-10 17:53:30 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-03-20 15:56:58 +1100
commita7d2dac802a7ff0677b0a5c2fdb9fe0d3fdaee0c (patch)
tree55fa2e474c2827e44f1b48b57288ab3051654f97 /arch/powerpc/include/asm/pte-fsl-booke.h
parentc605782b1c3f1c18a55dc1a75b19ed0288f61ac3 (diff)
downloadkernel-crypto-a7d2dac802a7ff0677b0a5c2fdb9fe0d3fdaee0c.tar.gz
kernel-crypto-a7d2dac802a7ff0677b0a5c2fdb9fe0d3fdaee0c.tar.xz
kernel-crypto-a7d2dac802a7ff0677b0a5c2fdb9fe0d3fdaee0c.zip
powerpc/mm: Unify PTE_RPN_SHIFT and _PAGE_CHG_MASK definitions
This updates the 32-bit headers to use the same definitions for the RPN shift inside the PTE as 64-bit, and thus updates _PAGE_CHG_MASK to become identical. This does introduce a runtime visible difference, which is that now, _PAGE_HASHPTE will be part of _PAGE_CHG_MASK and thus preserved. However this should have no practical effect as it should have been preserved in the first place and we got away with not having it there due to our PTE access functions preserving it anyway. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/pte-fsl-booke.h')
-rw-r--r--arch/powerpc/include/asm/pte-fsl-booke.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pte-fsl-booke.h b/arch/powerpc/include/asm/pte-fsl-booke.h
index 0fe5de7bea3..10820f58acf 100644
--- a/arch/powerpc/include/asm/pte-fsl-booke.h
+++ b/arch/powerpc/include/asm/pte-fsl-booke.h
@@ -36,6 +36,8 @@
#ifdef CONFIG_PTE_64BIT
/* ERPN in a PTE never gets cleared, ignore it */
#define _PTE_NONE_MASK 0xffffffffffff0000ULL
+/* We extend the size of the PTE flags area when using 64-bit PTEs */
+#define PTE_RPN_SHIFT (PAGE_SHIFT + 8)
#endif
#define _PMD_PRESENT 0