Go to the documentation of this file. 1 #ifndef _H8300_BARRIER_H
2 #define _H8300_BARRIER_H
4 #define nop() asm volatile ("nop"::)
10 #define mb() asm volatile ("" : : :"memory")
11 #define rmb() asm volatile ("" : : :"memory")
12 #define wmb() asm volatile ("" : : :"memory")
13 #define set_mb(var, value) do { xchg(&var, value); } while (0)
17 #define smp_rmb() rmb()
18 #define smp_wmb() wmb()
19 #define smp_read_barrier_depends() read_barrier_depends()
21 #define smp_mb() barrier()
22 #define smp_rmb() barrier()
23 #define smp_wmb() barrier()
24 #define smp_read_barrier_depends() do { } while(0)