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

Go to the source code of this file.

Macros

#define __stringify_1(x)   #x
 
#define __stringify(x)   __stringify_1(x)
 
#define mfspr(rn)
 
#define mtspr(rn, v)   asm volatile("mtspr " __stringify(rn) ",%0" : : "r" (v))
 
#define get_sp()   (__stack_pointer)
 

Functions

register void *__stack_pointer asm ("r1")
 

Macro Definition Documentation

#define __stringify (   x)    __stringify_1(x)

Definition at line 20 of file reg.h.

#define __stringify_1 (   x)    #x

Definition at line 19 of file reg.h.

#define get_sp ( )    (__stack_pointer)

Definition at line 28 of file reg.h.

#define mfspr (   rn)
Value:
({unsigned long rval; \
asm volatile("mfspr %0," __stringify(rn) \
: "=r" (rval)); rval; })

Definition at line 22 of file reg.h.

#define mtspr (   rn,
  v 
)    asm volatile("mtspr " __stringify(rn) ",%0" : : "r" (v))

Definition at line 25 of file reg.h.

Function Documentation

register void* __stack_pointer asm ( "r1"  )