summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/pgtable-2level-hwdef.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2011-09-05 17:52:36 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-10-06 15:40:06 +0100
commitd7c5d0dcffb3b5702d9477faceff4b8398e6fed0 (patch)
treea1b670fac0f11868ff280380dca98db1c3926b46 /arch/arm/include/asm/pgtable-2level-hwdef.h
parent442e70c0b3536e832547eed89629435462f4b515 (diff)
ARM: 7077/1: LPAE: Use a mask for physical addresses in page table entries
With LPAE, the physical address mask is 40-bit while the page table entry is 64-bit. This patch introduces PHYS_MASK for the 2-level page table format, defined as ~0UL. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/pgtable-2level-hwdef.h')
-rw-r--r--arch/arm/include/asm/pgtable-2level-hwdef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable-2level-hwdef.h b/arch/arm/include/asm/pgtable-2level-hwdef.h
index 2b52c40edd8..5cfba15cb40 100644
--- a/arch/arm/include/asm/pgtable-2level-hwdef.h
+++ b/arch/arm/include/asm/pgtable-2level-hwdef.h
@@ -88,4 +88,6 @@
#define PTE_SMALL_AP_URO_SRW (_AT(pteval_t, 0xaa) << 4)
#define PTE_SMALL_AP_URW_SRW (_AT(pteval_t, 0xff) << 4)
+#define PHYS_MASK (~0UL)
+
#endif