aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2026-04-29 11:34:49 +0000
committerAndrew Turner <andrew@FreeBSD.org>2026-04-29 11:39:29 +0000
commit2783fb7e7321911b4159d7f41d1c80cae40a7552 (patch)
tree89c46509300ad9a1e32a59e0a02ab948de51c0fb
parent01ff0fa77d33dde6b6f6a0ff83b0028f76243796 (diff)
arm64: Fix a MTE check
It should be for FEAT_MTE2 as the registers aren't implemented for FEAT_MTE. While here fix the style of the comment explaining the check. Reported by: markj Fixes: 58de79153622 ("arm64: mte: configure initial state for system registers") Sponsored by: Arm Ltd
-rw-r--r--sys/arm64/arm64/locore.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
index c86f98da55a8..14300eceb6d5 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -1065,10 +1065,10 @@ LENTRY(start_mmu)
ldr x2, mair
/*
- * If MTE is supported, configure GCR_EL1 and clear the TFSR registers of
- * any pending tag check faults
+ * If FEAT_MTE2 is supported, configure GCR_EL1 and clear the TFSR
+ * registers of any pending tag check faults
*/
- CHECK_CPU_FEAT(x3, ID_AA64PFR1, MTE, MTE, 1f)
+ CHECK_CPU_FEAT(x3, ID_AA64PFR1, MTE, MTE2, 1f)
/* Set GCR_EL1, non-zero tags excluded by default */
mov x3, #(GCR_Exclude_MASK | GCR_RRND)