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

Go to the source code of this file.

Macros

#define mfctl(reg)
 
#define mtctl(gr, cr)
 
#define get_eiem()   mfctl(15)
 
#define mfsp(reg)
 
#define mtsp(gr, cr)
 

Macro Definition Documentation

#define get_eiem ( )    mfctl(15)

Definition at line 20 of file special_insns.h.

#define mfctl (   reg)
Value:
({ \
unsigned long cr; \
__asm__ __volatile__( \
"mfctl " #reg ",%0" : \
"=r" (cr) \
); \
cr; \
})

Definition at line 4 of file special_insns.h.

#define mfsp (   reg)
Value:
({ \
unsigned long cr; \
__asm__ __volatile__( \
"mfsp " #reg ",%0" : \
"=r" (cr) \
); \
cr; \
})

Definition at line 26 of file special_insns.h.

#define mtctl (   gr,
  cr 
)
Value:
__asm__ __volatile__("mtctl %0,%1" \
: /* no outputs */ \
: "r" (gr), "i" (cr) : "memory")

Definition at line 13 of file special_insns.h.

#define mtsp (   gr,
  cr 
)
Value:
__asm__ __volatile__("mtsp %0,%1" \
: /* no outputs */ \
: "r" (gr), "i" (cr) : "memory")

Definition at line 35 of file special_insns.h.