diff options
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/include/atomic.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/arch/arm/include/atomic.h b/sys/arch/arm/include/atomic.h new file mode 100644 index 00000000000..8bf37567652 --- /dev/null +++ b/sys/arch/arm/include/atomic.h @@ -0,0 +1,20 @@ +/* $OpenBSD: atomic.h,v 1.3 2007/02/06 17:13:33 art Exp $ */ + +/* Public Domain */ + +#ifndef __ARM_ATOMIC_H__ +#define __ARM_ATOMIC_H__ + +static __inline void +atomic_setbits_int(__volatile unsigned int *uip, unsigned int v) +{ + *uip |= v; +} + +static __inline void +atomic_clearbits_int(__volatile unsigned int *uip, unsigned int v) +{ + *uip &= ~v; +} + +#endif |