Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#endif
#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#endif
-#define ILLEGAL_INSTR .long 0xd00d00
+#define ILLEGAL_INSTR ".long 0xd00d00"
"stwcx. %2,0,%1\n" /* else store conditional */
"bne- 1b\n" /* retry if lost reservation */
"isync\n"
"stwcx. %2,0,%1\n" /* else store conditional */
"bne- 1b\n" /* retry if lost reservation */
"isync\n"
: "r"(addr), "r"(val)
: "memory", "cc");
: "r"(addr), "r"(val)
: "memory", "cc");
-#define xchg(addr, v) (__typeof__(*(addr)) _atomic_exchange((addr), (v), \
- sizeof(*(addr))))
+#define xchg(addr, v) (__typeof__(*(addr))) _atomic_exchange((addr), (v), \
+ sizeof(*(addr)))
#endif /* #ifndef _INCLUDE_API_H */
#endif /* #ifndef _INCLUDE_API_H */