Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115993699
D45611.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
529 B
Referenced Files
None
Subscribers
None
D45611.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/asm/barrier.h b/sys/compat/linuxkpi/common/include/asm/barrier.h
--- a/sys/compat/linuxkpi/common/include/asm/barrier.h
+++ b/sys/compat/linuxkpi/common/include/asm/barrier.h
@@ -58,4 +58,7 @@
#define smp_mb__before_atomic() barrier()
#define smp_mb__after_atomic() barrier()
+#define smp_store_release(p, v) do { smp_mb(); WRITE_ONCE(*p, v); } while (0)
+#define smp_load_acquire(p) ({ typeof(*p) _v = READ_ONCE(*p); smp_mb(); _v; })
+
#endif /* _LINUXKPI_ASM_BARRIER_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 2, 8:19 AM (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17902034
Default Alt Text
D45611.diff (529 B)
Attached To
Mode
D45611: LinuxKPI: Add smp_store_release and smp_load_acquire functions
Attached
Detach File
Event Timeline
Log In to Comment