blob: ebdc3ade1c668a2cbc864130671868bb3f1cab7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* $OpenBSD: atomic.h,v 1.7 2010/04/22 21:03:17 drahn Exp $ */
/* Public Domain */
#ifndef __ARM_ATOMIC_H__
#define __ARM_ATOMIC_H__
#if defined(_KERNEL)
/*
* on pre-v6 arm processors, it is necessary to disable interrupts if
* in the kernel and atomic updates are necessary without full mutexes
*/
void atomic_setbits_int(__volatile unsigned int *, unsigned int);
void atomic_clearbits_int(__volatile unsigned int *, unsigned int);
#endif /* defined(_KERNEL) */
#endif /* __ARM_ATOMIC_H__ */
|