Activate the NO_64BIT_ATOMICS code for mips and powerpc
This commit is contained in:
parent
c7762913ac
commit
fc614c29c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300154
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user