arm64/mm: Move PTE_VALID from SW defined to HW page table entry definitions
authorAnshuman Khandual <anshuman.khandual@arm.com>
Tue, 21 May 2019 04:06:27 +0000 (09:36 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 3 Jun 2019 15:59:30 +0000 (16:59 +0100)
PTE_VALID signifies that the last level page table entry is valid and it is
MMU recognized while walking the page table. This is not a software defined
PTE bit and should not be listed like one. Just move it to appropriate
header file.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Steve Capper <steve.capper@arm.com>
Cc: Suzuki Poulose <suzuki.poulose@arm.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgtable-hwdef.h
arch/arm64/include/asm/pgtable-prot.h

index a69259cc1f16a913de404815e1de42d980f8bf82..974f0114ef1b7e955fc395adea85637b19860d06 100644 (file)
 /*
  * Level 3 descriptor (PTE).
  */
+#define PTE_VALID              (_AT(pteval_t, 1) << 0)
 #define PTE_TYPE_MASK          (_AT(pteval_t, 3) << 0)
 #define PTE_TYPE_FAULT         (_AT(pteval_t, 0) << 0)
 #define PTE_TYPE_PAGE          (_AT(pteval_t, 3) << 0)
index 986e41c4c32b02bd9dacc4f3eb40d9d3e993fe97..38c7148e20232c704421c1c7efc815c63eadb107 100644 (file)
@@ -24,7 +24,6 @@
 /*
  * Software defined PTE bits definition.
  */
-#define PTE_VALID              (_AT(pteval_t, 1) << 0)
 #define PTE_WRITE              (PTE_DBM)                /* same as DBM (51) */
 #define PTE_DIRTY              (_AT(pteval_t, 1) << 55)
 #define PTE_SPECIAL            (_AT(pteval_t, 1) << 56)