[PATCH v5 2/6] arm64: add APTable encoding to pagetable defs
Maxwell Bland
mbland at motorola.com
Mon Jun 24 15:12:19 PDT 2024
Add in the APTable permission bit encoding to describe table-level
hierarchical access control
Signed-off-by: Maxwell Bland <mbland at motorola.com>
---
arch/arm64/include/asm/pgtable-hwdef.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
index 9943ff0af4c9..8c229fc96c0a 100644
--- a/arch/arm64/include/asm/pgtable-hwdef.h
+++ b/arch/arm64/include/asm/pgtable-hwdef.h
@@ -146,6 +146,11 @@
#define PMD_SECT_UXN (_AT(pmdval_t, 1) << 54)
#define PMD_TABLE_PXN (_AT(pmdval_t, 1) << 59)
#define PMD_TABLE_UXN (_AT(pmdval_t, 1) << 60)
+/*
+ * APTable[1:0] encoding for hierarchical data access control
+ */
+#define PMD_TABLE_KERN (_AT(pmdval_t, 1) << 61)
+#define PMD_TABLE_PRDONLY (_AT(pmdval_t, 1) << 62)
/*
* AttrIndx[2:0] encoding (mapping attributes defined in the MAIR* registers).
--
2.43.0
More information about the linux-arm-kernel
mailing list