|
@@ -76,6 +76,7 @@ extern uint32_t __xchg_32(uint32_t i, volatile void *v);
|
|
* - if (*ptr != test) then orig = *ptr;
|
|
* - if (*ptr != test) then orig = *ptr;
|
|
*/
|
|
*/
|
|
extern uint64_t __cmpxchg_64(uint64_t test, uint64_t new, volatile uint64_t *v);
|
|
extern uint64_t __cmpxchg_64(uint64_t test, uint64_t new, volatile uint64_t *v);
|
|
|
|
+#define cmpxchg64(p, o, n) __cmpxchg_64((o), (n), (p))
|
|
|
|
|
|
#ifndef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS
|
|
#ifndef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS
|
|
|
|
|