aboutsummaryrefslogtreecommitdiffstats
path: root/include/arch/aarch64/arch.h
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2019-07-23 08:55:10 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2019-07-23 08:55:10 +0000
commit1d7dc63ca5e56fcf93210f4cba7c83683372a93c (patch)
treedcd4fc1ff6d16ea4f239693e98e8bb9897d9cc4c /include/arch/aarch64/arch.h
parentb514ee86c4354a8fae21f853bc8d9c6728543267 (diff)
parentb7e398d64cc4d5bfe279f1a50b7c7e4ea9263534 (diff)
downloadplatform_external_arm-trusted-firmware-1d7dc63ca5e56fcf93210f4cba7c83683372a93c.tar.gz
platform_external_arm-trusted-firmware-1d7dc63ca5e56fcf93210f4cba7c83683372a93c.tar.bz2
platform_external_arm-trusted-firmware-1d7dc63ca5e56fcf93210f4cba7c83683372a93c.zip
Merge "Enable MTE support unilaterally for Normal World" into integration
Diffstat (limited to 'include/arch/aarch64/arch.h')
-rw-r--r--include/arch/aarch64/arch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/arch/aarch64/arch.h b/include/arch/aarch64/arch.h
index 913b62c53..e4147d7e9 100644
--- a/include/arch/aarch64/arch.h
+++ b/include/arch/aarch64/arch.h
@@ -219,6 +219,13 @@
#define BTI_IMPLEMENTED ULL(1) /* The BTI mechanism is implemented */
+#define ID_AA64PFR1_EL1_MTE_SHIFT U(8)
+#define ID_AA64PFR1_EL1_MTE_MASK ULL(0xf)
+
+#define MTE_UNIMPLEMENTED ULL(0)
+#define MTE_IMPLEMENTED_EL0 ULL(1) /* MTE is only implemented at EL0 */
+#define MTE_IMPLEMENTED_ELX ULL(2) /* MTE is implemented at all ELs */
+
/* ID_PFR1_EL1 definitions */
#define ID_PFR1_VIRTEXT_SHIFT U(12)
#define ID_PFR1_VIRTEXT_MASK U(0xf)
@@ -278,6 +285,7 @@
/* SCR definitions */
#define SCR_RES1_BITS ((U(1) << 4) | (U(1) << 5))
+#define SCR_ATA_BIT (U(1) << 26)
#define SCR_FIEN_BIT (U(1) << 21)
#define SCR_API_BIT (U(1) << 17)
#define SCR_APK_BIT (U(1) << 16)