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>
This commit is contained in:

committed by
Russell King

parent
442e70c0b3
commit
d7c5d0dcff
@@ -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
|
||||
|
Reference in New Issue
Block a user