[PATCH v1 04/18] arm64/sysreg: add HFGxTR_EL2 bits for Permission Indirection Extension
Joey Gouly
joey.gouly at arm.com
Thu Mar 9 06:52:32 PST 2023
Add the trap bit definitions for nPIR_EL1 and nPIRE0_EL1.
Signed-off-by: Joey Gouly <joey.gouly at arm.com>
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: Will Deacon <will at kernel.org>
Cc: Mark Brown <broonie at kernel.org>
---
arch/arm64/include/asm/sysreg.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
index 9e3ecba3c4e6..cb9e387e39e0 100644
--- a/arch/arm64/include/asm/sysreg.h
+++ b/arch/arm64/include/asm/sysreg.h
@@ -759,6 +759,10 @@
#define ICH_VTR_TDS_MASK (1 << ICH_VTR_TDS_SHIFT)
/* HFG[WR]TR_EL2 bit definitions */
+#define HFGxTR_EL2_nPIR_EL0_SHIFT 58
+#define HFGxTR_EL2_nPIR_EL0_MASK BIT_MASK(HFGxTR_EL2_nPIR_EL0_SHIFT)
+#define HFGxTR_EL2_nPIREO_EL0_SHIFT 57
+#define HFGxTR_EL2_nPIREO_EL0_MASK BIT_MASK(HFGxTR_EL2_nPIREO_EL0_SHIFT)
#define HFGxTR_EL2_nTPIDR2_EL0_SHIFT 55
#define HFGxTR_EL2_nTPIDR2_EL0_MASK BIT_MASK(HFGxTR_EL2_nTPIDR2_EL0_SHIFT)
#define HFGxTR_EL2_nSMPRI_EL1_SHIFT 54
--
2.17.1
More information about the linux-arm-kernel
mailing list