Page MenuHomeFreeBSD

D61690.1795070368.diff
No OneTemporary

Authored By
Unknown
Size
441 B
Referenced Files
None
Subscribers
None

D61690.1795070368.diff

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

Mime Type
text/plain
Expires
Thu, Nov 19, 6:39 AM (12 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41834100
Default Alt Text
D61690.1795070368.diff (441 B)

Event Timeline