eal/ppc: fix 64-bit atomic exchange operation
[dpdk.git] / lib / librte_eal / common / include / arch / ppc_64 / rte_atomic.h
index b13a80d..7e3e131 100644 (file)
@@ -401,7 +401,7 @@ static inline void rte_atomic64_clear(rte_atomic64_t *v)
 static inline uint64_t
 rte_atomic64_exchange(volatile uint64_t *dst, uint64_t val)
 {
-       return __atomic_exchange_4(dst, val, __ATOMIC_SEQ_CST);
+       return __atomic_exchange_8(dst, val, __ATOMIC_SEQ_CST);
 }
 
 #endif