POK(kernelpart)
|
Go to the source code of this file.
Defines | |
#define | SPIN_UNLOCK(_spin_) (_spin_) = 0 |
#define | SPIN_LOCK(_spin_) |
Typedefs | |
typedef unsigned int | pok_spinlock_t |
#define SPIN_LOCK | ( | _spin_ | ) |
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 unsigned int pok_spinlock_t |
Definition at line 21 of file spinlock.h.