summaryrefslogtreecommitdiff
path: root/include/lib
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-03-14 20:48:43 +0000
committerMark Brown <broonie@kernel.org>2023-04-12 15:03:22 +0100
commit062b6c6bf23f9656332b0aa3fed59c15f34f9361 (patch)
tree74d6d9a353e253cc539d7d47a5c6c85d70e17a0a /include/lib
parent2237e562fd4d68cf4051e51bbff33ebd9ad14ae2 (diff)
downloadarm-trusted-firmware-062b6c6bf23f9656332b0aa3fed59c15f34f9361.tar.gz
feat(pie/por): support permission indirection and overlay
Arm v8.9 introduces a series of features providing a new way to set memory permissions. Instead of directly encoding the permissions in the page tables the PTEs contain indexes into an array of permissions stored in system registers, allowing greater flexibility and density of encoding. Enable access to these features for EL2 and below, context switching the newly added EL2 registers as appropriate. Since all of FEAT_S[12]P[IO]E are separately discoverable we have separate build time options for enabling them, but note that there is overlap in the registers that they implement and the enable bit required for lower EL access. Change the FVP platform to default to handling them as dynamic options so the right decision can be made by the code at runtime. Signed-off-by: Mark Brown <broonie@kernel.org> Change-Id: Icf89e444e39e1af768739668b505661df18fb234
Diffstat (limited to 'include/lib')
-rw-r--r--include/lib/el3_runtime/aarch64/context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/lib/el3_runtime/aarch64/context.h b/include/lib/el3_runtime/aarch64/context.h
index e5e7e7422..a8e6d8ad2 100644
--- a/include/lib/el3_runtime/aarch64/context.h
+++ b/include/lib/el3_runtime/aarch64/context.h
@@ -230,9 +230,13 @@
// Starting with Armv8.9
#define CTX_TCR2_EL2 U(0x1d8)
+#define CTX_POR_EL2 U(0x1e0)
+#define CTX_PIRE0_EL2 U(0x1e8)
+#define CTX_PIR_EL2 U(0x1f0)
+#define CTX_S2PIR_EL2 U(0x1f8)
/* Align to the next 16 byte boundary */
-#define CTX_EL2_SYSREGS_END U(0x1e0)
+#define CTX_EL2_SYSREGS_END U(0x200)
#endif /* CTX_INCLUDE_EL2_REGS */