From: Jerin Jacob Date: Wed, 18 Jan 2017 01:21:21 +0000 (+0530) Subject: eal/arm64: define SMP barrier X-Git-Tag: spdx-start~4752 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=67ce81bd3dff58731888733f20c49c9e29cce326;p=dpdk.git eal/arm64: define SMP barrier dmb instruction based barrier is used for smp version of memory barrier. Signed-off-by: Jerin Jacob --- 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 }