aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/processor_64.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-09-12 22:11:36 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-09-12 22:11:36 +0900
commit9996b42ac06adb7555933366e071ec8824bcaa37 (patch)
tree1262d59f5031a574037a177ae036456fd1f7ce34 /arch/sh/include/asm/processor_64.h
parentf8b890ab4ca60c05b5621b267712709d329f7612 (diff)
sh: provide user_stack_pointer(), needed for tracehook support.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/processor_64.h')
-rw-r--r--arch/sh/include/asm/processor_64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/include/asm/processor_64.h b/arch/sh/include/asm/processor_64.h
index 16609bc1162..ae19839f1d9 100644
--- a/arch/sh/include/asm/processor_64.h
+++ b/arch/sh/include/asm/processor_64.h
@@ -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__ */