Page MenuHomeFreeBSD

D34644.diff
No OneTemporary

D34644.diff

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

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)

Event Timeline