Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81177
b: refs/heads/master
c: ee41eea
h: refs/heads/master
i:
  81175: 2a9878b
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Josh Boyer committed Dec 23, 2007
1 parent 41344e1 commit a40a953
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d23f5099297c0f017ba4fb165dc9879bda11f9ce
refs/heads/master: ee41eea947ebe2f1f627fafe0e429b5dcaaab944
8 changes: 8 additions & 0 deletions trunk/arch/powerpc/boot/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ static inline u32 mfpvr(void)
return pvr;
}

#define __stringify_1(x) #x
#define __stringify(x) __stringify_1(x)

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

register void *__stack_pointer asm("r1");
#define get_sp() (__stack_pointer)

Expand Down

0 comments on commit a40a953

Please sign in to comment.