Go to the documentation of this file. 1 #ifndef _PPC_BOOT_REG_H
2 #define _PPC_BOOT_REG_H
12 static inline u32 mfpvr(
void)
15 asm volatile (
"mfpvr %0" :
"=r"(
pvr));
19 #define __stringify_1(x) #x
20 #define __stringify(x) __stringify_1(x)
22 #define mfspr(rn) ({unsigned long rval; \
23 asm volatile("mfspr %0," __stringify(rn) \
24 : "=r" (rval)); rval; })
25 #define mtspr(rn, v) asm volatile("mtspr " __stringify(rn) ",%0" : : "r" (v))
27 register void *__stack_pointer
asm(
"r1");
28 #define get_sp() (__stack_pointer)