aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pte-fsl-booke.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-03-10 13:53:30 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-03-20 00:56:58 -0400
commita7d2dac802a7ff0677b0a5c2fdb9fe0d3fdaee0c (patch)
tree55fa2e474c2827e44f1b48b57288ab3051654f97 /arch/powerpc/include/asm/pte-fsl-booke.h
parentc605782b1c3f1c18a55dc1a75b19ed0288f61ac3 (diff)
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 0fe5de7bea3d..10820f58acf5 100644
--- a/arch/powerpc/include/asm/pte-fsl-booke.h
+++ b/arch/powerpc/include/asm/pte-fsl-booke.h
@@ -36,6 +36,8 @@
36#ifdef CONFIG_PTE_64BIT 36#ifdef CONFIG_PTE_64BIT
37/* ERPN in a PTE never gets cleared, ignore it */ 37/* ERPN in a PTE never gets cleared, ignore it */
38#define _PTE_NONE_MASK 0xffffffffffff0000ULL 38#define _PTE_NONE_MASK 0xffffffffffff0000ULL
39/* We extend the size of the PTE flags area when using 64-bit PTEs */
40#define PTE_RPN_SHIFT (PAGE_SHIFT + 8)
39#endif 41#endif
40 42
41#define _PMD_PRESENT 0 43#define _PMD_PRESENT 0