diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-02-19 17:18:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-02-19 17:18:44 +0000 |
commit | 436ba3a8320b9ab26391c20991c5af97cb283c26 (patch) | |
tree | 1625a3e0348de9eb40f784b75f4838cb399ad8e4 /sys/arch/vax | |
parent | 098d7c42e9831c2192e39634bf500c29b72f34a9 (diff) |
only make this interface available to the kernel for now, discussed witha
rt and such; tested and ok miod drahn
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/include/atomic.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/vax/include/atomic.h b/sys/arch/vax/include/atomic.h index b5c4f8d98a7..0e390863980 100644 --- a/sys/arch/vax/include/atomic.h +++ b/sys/arch/vax/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 __VAX_ATOMIC_H__ #define __VAX_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 /* __VAX_ATOMIC_H__ */ |