Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178283872
D62382.1796424071.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
770 B
Referenced Files
None
Subscribers
None
D62382.1796424071.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -2568,7 +2568,11 @@
* for address translation, and getting the result back.
*/
intr = intr_disable();
- par = arm64_address_translate_s1e1r(va);
+ if (in_vhe())
+ par = arm64_address_translate_s1e2r(va);
+ else
+ par = arm64_address_translate_s1e1r(va);
+
intr_restore(intr);
if (PAR_SUCCESS(par)) {
diff --git a/sys/arm64/include/cpu.h b/sys/arm64/include/cpu.h
--- a/sys/arm64/include/cpu.h
+++ b/sys/arm64/include/cpu.h
@@ -341,6 +341,8 @@
ADDRESS_TRANSLATE_FUNC(s1e0w)
ADDRESS_TRANSLATE_FUNC(s1e1r)
ADDRESS_TRANSLATE_FUNC(s1e1w)
+ADDRESS_TRANSLATE_FUNC(s1e2r)
+ADDRESS_TRANSLATE_FUNC(s1e2w)
#endif /* !__ASSEMBLER__ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 10:41 PM (22 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42212867
Default Alt Text
D62382.1796424071.diff (770 B)
Attached To
Mode
D62382: arm64/pmap: Use S1E2R on VHE in pmap_klookup
Attached
Detach File
Event Timeline