summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/include/atomic.h
blob: 3b451b8696d2760278185569eff7fdd74c1316a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*	$OpenBSD: atomic.h,v 1.2 2007/02/19 17:18:42 deraadt Exp $	*/

/* Public Domain */

#ifndef __HPPA64_ATOMIC_H__
#define __HPPA64_ATOMIC_H__

#if defined(_KERNEL)

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 /* defined(_KERNEL) */
#endif /* __HPPA64_ATOMIC_H__ */