aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/processor_32.h2
-rw-r--r--arch/sh/include/asm/processor_64.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h
index 41d23210583c..1cd3a144c85c 100644
--- a/arch/sh/include/asm/processor_32.h
+++ b/arch/sh/include/asm/processor_32.h
@@ -199,6 +199,8 @@ extern unsigned long get_wchan(struct task_struct *p);
199#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) 199#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
200#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15]) 200#define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15])
201 201
202#define user_stack_pointer(regs) ((regs)->regs[15])
203
202#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory") 204#define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
203#define cpu_relax() barrier() 205#define cpu_relax() barrier()
204 206
diff --git a/arch/sh/include/asm/processor_64.h b/arch/sh/include/asm/processor_64.h
index 16609bc11627..ae19839f1d97 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);
267#define KSTK_EIP(tsk) ((tsk)->thread.pc) 267#define KSTK_EIP(tsk) ((tsk)->thread.pc)
268#define KSTK_ESP(tsk) ((tsk)->thread.sp) 268#define KSTK_ESP(tsk) ((tsk)->thread.sp)
269 269
270#define user_stack_pointer(regs) ((regs)->sp)
271
270#define cpu_relax() barrier() 272#define cpu_relax() barrier()
271 273
272#endif /* __ASSEMBLY__ */ 274#endif /* __ASSEMBLY__ */