Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108970177
D46813.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D46813.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
@@ -9178,12 +9178,23 @@
if (pmap_klookup(far, NULL))
rv = KERN_SUCCESS;
} else {
- PMAP_LOCK(pmap);
+ bool owned;
+
+ /*
+ * In the EFIRT driver we lock the pmap before
+ * calling into the runtime service. As the lock
+ * is already owned by the current thread skip
+ * locking it again.
+ */
+ owned = PMAP_OWNED(pmap);
+ if (!owned)
+ PMAP_LOCK(pmap);
/* Ask the MMU to check the address. */
intr = intr_disable();
par = arm64_address_translate_s1e0r(far);
intr_restore(intr);
- PMAP_UNLOCK(pmap);
+ if (!owned)
+ PMAP_UNLOCK(pmap);
/*
* If the translation was successful, then we can
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 3:18 AM (4 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16352945
Default Alt Text
D46813.diff (782 B)
Attached To
Mode
D46813: arm64: Support pmap_fault with a locked pmap
Attached
Detach File
Event Timeline
Log In to Comment