From 3eee44520a304e2dbea6c6c852f7702608d300a3 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 15 May 2017 09:17:34 +0000 Subject: Make atomic.h ready to be included in userland. - keep setbits/clearbits inside _KERNEL ok visa@ --- sys/arch/mips64/include/atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/mips64/include') 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_ */ -- cgit v1.2.3