Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177710559
D61690.1795101483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
441 B
Referenced Files
None
Subscribers
None
D61690.1795101483.diff
View Options
diff --git a/sys/riscv/riscv/swtch.S b/sys/riscv/riscv/swtch.S
--- a/sys/riscv/riscv/swtch.S
+++ b/sys/riscv/riscv/swtch.S
@@ -351,6 +351,9 @@
mv a1, s1
/* Release the old thread */
+#if defined(SMP)
+ fence rw, w
+#endif
sd s2, TD_LOCK(s0)
#if defined(SMP)
/* Spin if TD_LOCK points to a blocked_lock */
@@ -358,6 +361,7 @@
1:
ld t0, TD_LOCK(a1)
beq t0, s2, 1b
+ fence r, rw
#endif
/* Is VS enabled for new thread? */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 3:18 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41834100
Default Alt Text
D61690.1795101483.diff (441 B)
Attached To
Mode
D61690: riscv: Add missing barriers to cpu_switch
Attached
Detach File
Event Timeline