diff options
Diffstat (limited to 'sys/mips/include/atomic.h')
-rw-r--r-- | sys/mips/include/atomic.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/mips/include/atomic.h b/sys/mips/include/atomic.h index b43cc61..d4b951e 100644 --- a/sys/mips/include/atomic.h +++ b/sys/mips/include/atomic.h @@ -496,6 +496,34 @@ atomic_fetchadd_64(__volatile uint64_t *p, uint64_t v) } #endif +static __inline void +atomic_thread_fence_acq(void) +{ + + mips_sync(); +} + +static __inline void +atomic_thread_fence_rel(void) +{ + + mips_sync(); +} + +static __inline void +atomic_thread_fence_acq_rel(void) +{ + + mips_sync(); +} + +static __inline void +atomic_thread_fence_seq_cst(void) +{ + + mips_sync(); +} + /* Operations on chars. */ #define atomic_set_char atomic_set_8 #define atomic_set_acq_char atomic_set_acq_8 |