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 { \ asm volatile ("1: \n" \ "ldstub [%0], %1 \n" \ "tst %1 \n" \ "bnz 1b \n" \ : /* no output */ \ : "r" (&(_spin_)), "r"(1)); \ } while (0)
Definition at line 30 of file spinlock.h.
#define SPIN_UNLOCK | ( | _spin_ | ) | (_spin_) = 0 |
Definition at line 27 of file spinlock.h.
typedef unsigned int pok_spinlock_t |
Definition at line 25 of file spinlock.h.