diff mbox series

[v5,2/6] arm64: add APTable encoding to pagetable defs

Message ID z7v77vr34beigy6hy75mfsnssihc2gxzc4z4xioork343wki2n@gjv6kdxo6zxc (mailing list archive)
State New
Headers show
Series ptdump: add intermediate directory support | expand

Commit Message

Maxwell Bland June 24, 2024, 10:12 p.m. UTC
Add in the APTable permission bit encoding to describe table-level
hierarchical access control

Signed-off-by: Maxwell Bland <mbland@motorola.com>
---
 arch/arm64/include/asm/pgtable-hwdef.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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).