Page MenuHomeFreeBSD

D51102.id157781.diff
No OneTemporary

D51102.id157781.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
Sat, Oct 10, 10:54 PM (6 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40536816
Default Alt Text
D51102.id157781.diff (415 B)

Event Timeline