POK(kernelpart)
/home/jaouen/pok_official/pok/trunk/kernel/include/arch/x86/spinlock.h File Reference

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 Documentation

#define SPIN_LOCK (   _spin_)
Value:
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_)
Value:
{                                                               \
  (_spin_) = 0;                                                 \
}

Definition at line 23 of file spinlock.h.


Typedef Documentation

typedef unsigned char pok_spinlock_t

Definition at line 21 of file spinlock.h.