Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116122
b: refs/heads/master
c: 9996b42
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 12, 2008
1 parent 486d713 commit 4734485
Show file tree
Hide file tree
Showing 3 changed files with 5 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: f8b890ab4ca60c05b5621b267712709d329f7612
refs/heads/master: 9996b42ac06adb7555933366e071ec8824bcaa37
2 changes: 2 additions & 0 deletions trunk/arch/sh/include/asm/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ extern unsigned long get_wchan(struct task_struct *p);
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15])

#define user_stack_pointer(regs) ((regs)->regs[15])

#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
#define cpu_relax() barrier()

Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/sh/include/asm/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ extern unsigned long get_wchan(struct task_struct *p);
#define KSTK_EIP(tsk) ((tsk)->thread.pc)
#define KSTK_ESP(tsk) ((tsk)->thread.sp)

#define user_stack_pointer(regs) ((regs)->sp)

#define cpu_relax() barrier()

#endif /* __ASSEMBLY__ */
Expand Down

0 comments on commit 4734485

Please sign in to comment.