Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F98557105
D45611.id140290.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.id140290.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, Oct 4, 8:10 PM (8 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13420764
Default Alt Text
D45611.id140290.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