Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
system.h File Reference

Go to the source code of this file.

Data Structures

struct  __xchg_dummy
 

Macros

#define cris_machine_name   "cris"
 
#define wrusp(usp)   __asm__ __volatile__("move %0,$usp" : /* no outputs */ : "rm" (usp))
 
#define nop()   __asm__ __volatile__ ("nop");
 
#define xchg(ptr, x)   ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
#define tas(ptr)   (xchg((ptr),1))
 
#define __xg(x)   ((struct __xchg_dummy *)(x))
 

Macro Definition Documentation

#define __xg (   x)    ((struct __xchg_dummy *)(x))

Definition at line 45 of file system.h.

#define cris_machine_name   "cris"

Definition at line 13 of file system.h.

#define nop ( )    __asm__ __volatile__ ("nop");

Definition at line 39 of file system.h.

#define tas (   ptr)    (xchg((ptr),1))

Definition at line 42 of file system.h.

#define wrusp (   usp)    __asm__ __volatile__("move %0,$usp" : /* no outputs */ : "rm" (usp))

Definition at line 23 of file system.h.

#define xchg (   ptr,
  x 
)    ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))

Definition at line 41 of file system.h.