1 #ifndef _MACHINE_INSTR_H
2 #define _MACHINE_INSTR_H
6 /* If anyone wants to compile with gcc, use this section.
7 * It is not usable with the MIPSPro compiler.
13 __attribute__ ((unused))
14 atomic_swap (volatile long *p, long val)
27 : "=&r" (temp), "=m" (*p), "=&r" (ret)
34 __attribute__ ((unused))
35 compare_and_swap (volatile long *p, long oldval, long newval)
51 : "=&r" (ret), "=&r" (temp), "=m" (*p)
52 : "r" (oldval), "r" (newval), "m" (*p)
61 atomic_add(int *mem, int val)
66 long compare_and_swap (long *p, long oldval, long newval);
68 #define STORE_ORDER_BARRIER()
69 #define MEMORY_BARRIER_BEFORE_ATOMIC()
70 #define MEMORY_BARRIER_AFTER_ATOMIC()
71 #define MEMORY_BARRIER()