POK(kernelpart)
|
Go to the source code of this file.
Defines | |
#define | SPIN_UNLOCK(_spin_) |
#define | SPIN_LOCK(_spin_) |
Typedefs | |
typedef unsigned char | pok_spinlock_t |
#define SPIN_LOCK | ( | _spin_ | ) |
asm volatile ("mov $1, %%al \n\t" \ "1: \n\t" \ "lock xchg %0, %%al \n\t" \ "test %%al, %%al \n\t" \ "jnz 1b \n\t" \ : \ : "m" (_spin_) \ : "%al")
Definition at line 28 of file spinlock.h.
#define SPIN_UNLOCK | ( | _spin_ | ) |
{ \ (_spin_) = 0; \ }
Definition at line 23 of file spinlock.h.
typedef unsigned char pok_spinlock_t |
Definition at line 21 of file spinlock.h.