Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/atomic.h
Show All 28 Lines | |||||
#ifndef _OPENSOLARIS_SYS_ATOMIC_H_ | #ifndef _OPENSOLARIS_SYS_ATOMIC_H_ | ||||
#define _OPENSOLARIS_SYS_ATOMIC_H_ | #define _OPENSOLARIS_SYS_ATOMIC_H_ | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <machine/atomic.h> | #include <machine/atomic.h> | ||||
#define atomic_sub_64 atomic_subtract_64 | #define atomic_sub_64 atomic_subtract_64 | ||||
#if defined(__i386__) && (defined(_KERNEL) || defined(KLD_MODULE)) | #if defined(__i386__) && (defined(_KERNEL) || defined(KLD_MODULE) || defined(_STANDALONE)) | ||||
#define I386_HAVE_ATOMIC64 | #define I386_HAVE_ATOMIC64 | ||||
#endif | #endif | ||||
#if defined(__i386__) || defined(__amd64__) || defined(__arm__) | #if defined(__i386__) || defined(__amd64__) || defined(__arm__) | ||||
/* No spurious failures from fcmpset. */ | /* No spurious failures from fcmpset. */ | ||||
#define STRONG_FCMPSET | #define STRONG_FCMPSET | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |