Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103057464
D22622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
888 B
Referenced Files
None
Subscribers
None
D22622.diff
View Options
Index: head/sys/arm64/arm64/pmap.c
===================================================================
--- head/sys/arm64/arm64/pmap.c
+++ head/sys/arm64/arm64/pmap.c
@@ -5850,8 +5850,18 @@
KASSERT(PCPU_GET(curpmap) != NULL, ("no active pmap"));
KASSERT(pmap != kernel_pmap, ("kernel pmap activation"));
- if (pmap == PCPU_GET(curpmap))
+ if (pmap == PCPU_GET(curpmap)) {
+ /*
+ * Handle the possibility that the old thread was preempted
+ * after an "ic" or "tlbi" instruction but before it performed
+ * a "dsb" instruction. If the old thread migrates to a new
+ * processor, its completion of a "dsb" instruction on that
+ * new processor does not guarantee that the "ic" or "tlbi"
+ * instructions performed on the old processor have completed.
+ */
+ dsb(ish);
return (false);
+ }
/*
* Ensure that the store to curpmap is globally visible before the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 9:13 AM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14758540
Default Alt Text
D22622.diff (888 B)
Attached To
Mode
D22622: Handle the possibility of preemption after an "ic" or "tlbi" instruction
Attached
Detach File
Event Timeline
Log In to Comment