diff options
| author | Scott Long <scottl@FreeBSD.org> | 2016-05-18 15:45:12 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2016-05-18 15:45:12 +0000 |
| commit | fc614c29c1f0eef3d62e47caddca238a30e8652e (patch) | |
| tree | ebabb4ce2edb260fbfe864ca8f5f7db8f449c646 | |
| parent | c7762913ac331d339da713545f3633165f5812a9 (diff) | |
Notes
| -rw-r--r-- | sys/net/mp_ring.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/mp_ring.c b/sys/net/mp_ring.c index f4e0b09ec023a..1e17964089f57 100644 --- a/sys/net/mp_ring.c +++ b/sys/net/mp_ring.c @@ -37,15 +37,17 @@ __FBSDID("$FreeBSD$"); #include <sys/malloc.h> #include <machine/cpu.h> - - -#include <net/mp_ring.h> +#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 <net/mp_ring.h> + union ring_state { struct { uint16_t pidx_head; |
