sh: provide user_stack_pointer(), needed for tracehook support.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
f8b890ab4c
commit
9996b42ac0
|
@ -199,6 +199,8 @@ extern unsigned long get_wchan(struct task_struct *p);
|
||||||
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
|
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
|
||||||
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15])
|
#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_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
|
||||||
#define cpu_relax() barrier()
|
#define cpu_relax() barrier()
|
||||||
|
|
||||||
|
|
|
@ -267,6 +267,8 @@ extern unsigned long get_wchan(struct task_struct *p);
|
||||||
#define KSTK_EIP(tsk) ((tsk)->thread.pc)
|
#define KSTK_EIP(tsk) ((tsk)->thread.pc)
|
||||||
#define KSTK_ESP(tsk) ((tsk)->thread.sp)
|
#define KSTK_ESP(tsk) ((tsk)->thread.sp)
|
||||||
|
|
||||||
|
#define user_stack_pointer(regs) ((regs)->sp)
|
||||||
|
|
||||||
#define cpu_relax() barrier()
|
#define cpu_relax() barrier()
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
Loading…
Reference in New Issue