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 compare_and_swap (volatile long *p, long oldval, long newval)
30 : "=&r" (ret), "=&r" (temp), "=m" (*p)
31 : "r" (oldval), "r" (newval), "m" (*p)
39 long compare_and_swap (long *p, long oldval, long newval);
41 #define STORE_ORDER_BARRIER()
42 #define MEMORY_BARRIER_AFTER_ATOMIC()
43 #define MEMORY_BARRIER()