Page MenuHomeFreeBSD

D51102.1790322895.diff
No OneTemporary

Size
415 B
Referenced Files
None
Subscribers
None

D51102.1790322895.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
@@ -373,9 +373,8 @@
ldr x2, =INIT_SCTLR_EL1
msr sctlr_el1, x2
- /* Check if the E2H flag is set */
- tst x4, #HCR_E2H
- b.eq .Lno_vhe
+ /* Check for VHE */
+ CHECK_CPU_FEAT(x2, ID_AA64MMFR1, VH, .Lno_vhe)
/*
* The kernel will be running in EL2, route exceptions here rather

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 25, 7:54 AM (16 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29913467
Default Alt Text
D51102.1790322895.diff (415 B)

Event Timeline