Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108180086
D34644.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
463 B
Referenced Files
None
Subscribers
None
D34644.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
@@ -247,6 +247,16 @@
b.eq 1f
ret
1:
+ /*
+ * Disable the MMU. If the HCR_EL2.E2H field is set we will clear it
+ * which may break address translation.
+ */
+ dsb sy
+ mrs x2, sctlr_el2
+ bic x2, x2, SCTLR_M
+ msr sctlr_el2, x2
+ isb
+
/* Configure the Hypervisor */
ldr x2, =(HCR_RW | HCR_APK | HCR_API)
msr hcr_el2, x2
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 7:41 AM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16049447
Default Alt Text
D34644.diff (463 B)
Attached To
Mode
D34644: arm64: disable the EL2 MMU in early boot
Attached
Detach File
Event Timeline
Log In to Comment