eal/arm64: define SMP barrier
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 18 Jan 2017 01:21:21 +0000 (06:51 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 18 Jan 2017 15:57:11 +0000 (16:57 +0100)
dmb instruction based barrier is used for smp version of memory barrier.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eal/common/include/arch/arm/rte_atomic_64.h

index bc7de64..78ebea2 100644 (file)
@@ -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
 }