Go to the documentation of this file.
18 #ifndef __POK_SPINLOCK_H__
19 #define __POK_SPINLOCK_H__
23 #define SPIN_UNLOCK(_spin_) \
26 #define SPIN_LOCK(_spin_) \
31 "lwarx %0,0,%1 \n\t" \
34 "stwcx. %2,0,%1 \n\t" \
36 : "=&r"(val) : "r" (&_spin_), "r"(1)); \