git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal/ppc: fix 64-bit atomic exchange operation
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
arch
/
ppc_64
/
rte_atomic.h
diff --git
a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
b/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
index
b13a80d
..
7e3e131
100644
(file)
--- a/
lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
+++ b/
lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
@@
-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