1 #ifndef __SPARC_BARRIER_H
2 #define __SPARC_BARRIER_H
4 /* XXX Change this if we ever use a PSO mode kernel. */
5 #define mb() __asm__ __volatile__ ("" : : : "memory")
8 #define read_barrier_depends() do { } while(0)
9 #define set_mb(__var, __value) do { __var = __value; mb(); } while(0)
10 #define smp_mb() __asm__ __volatile__("":::"memory")
11 #define smp_rmb() __asm__ __volatile__("":::"memory")
12 #define smp_wmb() __asm__ __volatile__("":::"memory")
13 #define smp_read_barrier_depends() do { } while(0)
15 #endif /* !(__SPARC_BARRIER_H) */