summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2017-01-18 06:51:21 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-01-18 16:57:11 +0100
commit67ce81bd3dff58731888733f20c49c9e29cce326 (patch)
treee39770c39bf3b5dee0b344a7f5791eb28818058a
parent84733fd0d75e4943f7f798e868e18d7ef0ed41ea (diff)
downloaddpdk-67ce81bd3dff58731888733f20c49c9e29cce326.zip
dpdk-67ce81bd3dff58731888733f20c49c9e29cce326.tar.gz
dpdk-67ce81bd3dff58731888733f20c49c9e29cce326.tar.xz
eal/arm64: define SMP barrier
dmb instruction based barrier is used for smp version of memory barrier. Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
-rw-r--r--lib/librte_eal/common/include/arch/arm/rte_atomic_64.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h
index bc7de64..78ebea2 100644
--- a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h
+++ b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h
@@ -82,11 +82,11 @@ static inline void rte_rmb(void)
dsb(ld);
}
-#define rte_smp_mb() rte_mb()
+#define rte_smp_mb() dmb(ish)
-#define rte_smp_wmb() rte_wmb()
+#define rte_smp_wmb() dmb(ishst)
-#define rte_smp_rmb() rte_rmb()
+#define rte_smp_rmb() dmb(ishld)
#ifdef __cplusplus
}