summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/barrier_32.h
blob: c1b76654ee76a8cf79ef87d25bd7a44d45479d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __SPARC_BARRIER_H
#define __SPARC_BARRIER_H

/* XXX Change this if we ever use a PSO mode kernel. */
#define mb()	__asm__ __volatile__ ("" : : : "memory")
#define rmb()	mb()
#define wmb()	mb()
#define read_barrier_depends()	do { } while(0)
#define set_mb(__var, __value)  do { __var = __value; mb(); } while(0)
#define smp_mb()	__asm__ __volatile__("":::"memory")
#define smp_rmb()	__asm__ __volatile__("":::"memory")
#define smp_wmb()	__asm__ __volatile__("":::"memory")
#define smp_read_barrier_depends()	do { } while(0)

#endif /* !(__SPARC_BARRIER_H) */