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

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 Documentation

#define SPIN_LOCK (   _spin_)
Value:
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 Documentation

typedef unsigned int pok_spinlock_t

Definition at line 25 of file spinlock.h.