Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156581894
D55946.id175433.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
D55946.id175433.diff
View Options
diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -398,7 +398,7 @@
*/
/* Configure the Hypervisor */
- ldr x2, =(HCR_RW | HCR_APK | HCR_API)
+ ldr x2, =(HCR_RW | HCR_APK | HCR_API | HCR_ATA)
msr hcr_el2, x2
/* Stash value of HCR_EL2 for later */
@@ -1063,6 +1063,21 @@
isb
ldr x2, mair
+
+ /*
+ * If MTE 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)
+
+ /* Set GCR_EL1, non-zero tags excluded by default */
+ mov x3, #(GCR_Exclude_MASK | GCR_RRND)
+ msr GCR_EL1_REG, x3
+
+ /* Clear any pending tag check faults */
+ msr TFSR_EL1_REG, xzr
+ msr TFSRE0_EL1_REG, xzr
+1:
msr mair_el1, x2
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 8:35 PM (5 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31479255
Default Alt Text
D55946.id175433.diff (802 B)
Attached To
Mode
D55946: arm64: mte: configure initial state for system registers
Attached
Detach File
Event Timeline
Log In to Comment