xref: /openbsd-src/sys/arch/arm/include/atomic.h (revision 91f110e064cd7c194e59e019b83bb7496c1c84d4)
1 /*	$OpenBSD: atomic.h,v 1.8 2011/03/23 16:54:34 pirofti 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