POK(kernelpart)
spinlock.h File Reference

Go to the source code of this file.

Macros

#define SPIN_UNLOCK(_spin_)   (_spin_) = 0
#define SPIN_LOCK(_spin_)

Typedefs

typedef unsigned int pok_spinlock_t

Macro Definition Documentation

#define SPIN_LOCK (   _spin_)
Value:
do { \
unsigned int val; \
asm volatile ("\n" \
"1:\n\t" \
"lwarx %0,0,%1 \n\t" \
"cmpwi %0,0 \n\t" \
"bne 1b \n\t" \
"stwcx. %2,0,%1 \n\t" \
"bne 1b \n\t" \
: "=&r"(val) : "r" (&_spin_), "r"(1)); \
} while (0)

Definition at line 26 of file spinlock.h.

#define SPIN_UNLOCK (   _spin_)    (_spin_) = 0

Definition at line 23 of file spinlock.h.


Typedef Documentation

typedef unsigned int pok_spinlock_t

Definition at line 21 of file spinlock.h.