diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-05-15 09:17:34 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-05-15 09:17:34 +0000 |
commit | 3eee44520a304e2dbea6c6c852f7702608d300a3 (patch) | |
tree | 61fe40904e19f03f36dce68d59e9950e2d1673fc /sys/arch/mips64/include | |
parent | f7e468f85d3f948c0210e978aa6bc9fa5ee93a53 (diff) |
Make atomic.h ready to be included in userland.
- keep setbits/clearbits inside _KERNEL
ok visa@
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r-- | sys/arch/mips64/include/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/atomic.h b/sys/arch/mips64/include/atomic.h index e87c11d36b8..550b1c67bd1 100644 --- a/sys/arch/mips64/include/atomic.h +++ b/sys/arch/mips64/include/atomic.h @@ -1,4 +1,4 @@ -/* $OpenBSD: atomic.h,v 1.10 2015/02/10 23:54:09 dlg Exp $ */ +/* $OpenBSD: atomic.h,v 1.11 2017/05/15 09:17:33 mpi Exp $ */ /* Public Domain */ @@ -55,6 +55,7 @@ atomic_clearbits_int(volatile unsigned int *uip, unsigned int v) "r"(uip), "r"(~v) : "memory"); } +#endif /* defined(_KERNEL) */ static inline unsigned int _atomic_cas_uint(volatile unsigned int *p, unsigned int o, unsigned int n) @@ -210,5 +211,4 @@ _atomic_add_long_nv(volatile unsigned long *uip, unsigned long v) #define atomic_add_long_nv(_uip, _v) _atomic_add_long_nv((_uip), (_v)) #define atomic_sub_long_nv(_uip, _v) _atomic_add_long_nv((_uip), 0 - (_v)) -#endif /* defined(_KERNEL) */ #endif /* _MIPS64_ATOMIC_H_ */ |