From fc614c29c1f0eef3d62e47caddca238a30e8652e Mon Sep 17 00:00:00 2001 From: Scott Long Date: Wed, 18 May 2016 15:45:12 +0000 Subject: [PATCH] Activate the NO_64BIT_ATOMICS code for mips and powerpc --- sys/net/mp_ring.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/net/mp_ring.c b/sys/net/mp_ring.c index f4e0b09ec023..1e17964089f5 100644 --- a/sys/net/mp_ring.c +++ b/sys/net/mp_ring.c @@ -37,15 +37,17 @@ __FBSDID("$FreeBSD$"); #include #include - - -#include +#if defined(__powerpc__) || defined(__mips__) +#define NO_64BIT_ATOMICS +#endif #if defined(__i386__) #define atomic_cmpset_acq_64 atomic_cmpset_64 #define atomic_cmpset_rel_64 atomic_cmpset_64 #endif +#include + union ring_state { struct { uint16_t pidx_head;