diff options
author | 2017-05-15 09:17:33 +0000 | |
---|---|---|
committer | 2017-05-15 09:17:33 +0000 | |
commit | d2c86be4a2461b1f280c995c9be4ec705fa614af (patch) | |
tree | ee7d9f767dc783bf3de49b8c0b40c5476c1e926d | |
parent | The Konsole SU bug means it can't clear the entire scroll region (it (diff) | |
download | wireguard-openbsd-d2c86be4a2461b1f280c995c9be4ec705fa614af.tar.xz wireguard-openbsd-d2c86be4a2461b1f280c995c9be4ec705fa614af.zip |
Make atomic.h ready to be included in userland.
- keep setbits/clearbits inside _KERNEL
ok visa@
-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_ */ |