From 67ce81bd3dff58731888733f20c49c9e29cce326 Mon Sep 17 00:00:00 2001 From: Jerin Jacob Date: Wed, 18 Jan 2017 06:51:21 +0530 Subject: [PATCH] eal/arm64: define SMP barrier dmb instruction based barrier is used for smp version of memory barrier. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 +++--- 1 file 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 bc7de640c1..78ebea24ad 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 } -- 2.20.1