From 436ba3a8320b9ab26391c20991c5af97cb283c26 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 19 Feb 2007 17:18:44 +0000 Subject: only make this interface available to the kernel for now, discussed witha rt and such; tested and ok miod drahn --- sys/arch/hppa64/include/atomic.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/arch/hppa64') diff --git a/sys/arch/hppa64/include/atomic.h b/sys/arch/hppa64/include/atomic.h index d0846609fa2..3b451b8696d 100644 --- a/sys/arch/hppa64/include/atomic.h +++ b/sys/arch/hppa64/include/atomic.h @@ -1,10 +1,12 @@ -/* $OpenBSD: atomic.h,v 1.1 2007/02/06 17:13:33 art Exp $ */ +/* $OpenBSD: atomic.h,v 1.2 2007/02/19 17:18:42 deraadt Exp $ */ /* Public Domain */ #ifndef __HPPA64_ATOMIC_H__ #define __HPPA64_ATOMIC_H__ +#if defined(_KERNEL) + static __inline void atomic_setbits_int(__volatile unsigned int *uip, unsigned int v) { @@ -17,4 +19,5 @@ atomic_clearbits_int(__volatile unsigned int *uip, unsigned int v) *uip &= ~v; } -#endif +#endif /* defined(_KERNEL) */ +#endif /* __HPPA64_ATOMIC_H__ */ -- cgit v1.2.3