Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149510375
D51102.1790322895.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
415 B
Referenced Files
None
Subscribers
None
D51102.1790322895.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
@@ -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
Details
Attached
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)
Attached To
Mode
D51102: arm64: Use CHECK_CPU_FEAT to check for VHE
Attached
Detach File
Event Timeline
Log In to Comment