xref: /openbsd-src/sys/arch/arm/include/atomic.h (revision 50b7afb2c2c0993b0894d4e34bf857cb13ed9c80)
1 /*	$OpenBSD: atomic.h,v 1.9 2014/03/29 18:09:28 guenther Exp $	*/
2 
3 /* Public Domain */
4 
5 #ifndef _ARM_ATOMIC_H_
6 #define _ARM_ATOMIC_H_
7 
8 #if defined(_KERNEL)
9 
10 /*
11  * on pre-v6 arm processors, it is necessary to disable interrupts if
12  * in the kernel and atomic updates are necessary without full mutexes
13  */
14 
15 void atomic_setbits_int(volatile unsigned int *, unsigned int);
16 void atomic_clearbits_int(volatile unsigned int *, unsigned int);
17 
18 #endif /* defined(_KERNEL) */
19 #endif /* _ARM_ATOMIC_H_ */
20