1 #if defined(__i386__) || defined(__x86_64__)
2 #define barrier() asm volatile("" ::: "memory")
3 #define mb() __sync_synchronize()
6 # define smp_rmb() barrier()
7 # define smp_wmb() barrier()
8 /* Weak barriers should be used. If not - it's a bug */
10 # define wmb() abort()
12 #error Please fill in barrier macros