summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/include/atomic.h')
-rw-r--r--sys/arch/sparc/include/atomic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/atomic.h b/sys/arch/sparc/include/atomic.h
index 9f4e454b806..72beef1ec48 100644
--- a/sys/arch/sparc/include/atomic.h
+++ b/sys/arch/sparc/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:43 deraadt Exp $ */
/* Public Domain */
#ifndef __SPARC_ATOMIC_H__
#define __SPARC_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 /* __SPARC_ATOMIC_H__ */