Annotation of sys/arch/hppa64/include/atomic.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: atomic.h,v 1.2 2007/02/19 17:18:42 deraadt Exp $ */
! 2:
! 3: /* Public Domain */
! 4:
! 5: #ifndef __HPPA64_ATOMIC_H__
! 6: #define __HPPA64_ATOMIC_H__
! 7:
! 8: #if defined(_KERNEL)
! 9:
! 10: static __inline void
! 11: atomic_setbits_int(__volatile unsigned int *uip, unsigned int v)
! 12: {
! 13: *uip |= v;
! 14: }
! 15:
! 16: static __inline void
! 17: atomic_clearbits_int(__volatile unsigned int *uip, unsigned int v)
! 18: {
! 19: *uip &= ~v;
! 20: }
! 21:
! 22: #endif /* defined(_KERNEL) */
! 23: #endif /* __HPPA64_ATOMIC_H__ */
CVSweb