diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sh/ptrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sh/ptrace.h b/include/asm-sh/ptrace.h index 85aa0f4de819..792fc35bd624 100644 --- a/include/asm-sh/ptrace.h +++ b/include/asm-sh/ptrace.h | |||
@@ -93,11 +93,11 @@ extern void show_regs(struct pt_regs *); | |||
93 | 93 | ||
94 | #ifdef CONFIG_SH_DSP | 94 | #ifdef CONFIG_SH_DSP |
95 | #define task_pt_regs(task) \ | 95 | #define task_pt_regs(task) \ |
96 | ((struct pt_regs *) ((unsigned long)(task)->thread_info + THREAD_SIZE \ | 96 | ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \ |
97 | - sizeof(struct pt_dspregs) - sizeof(unsigned long)) - 1) | 97 | - sizeof(struct pt_dspregs) - sizeof(unsigned long)) - 1) |
98 | #else | 98 | #else |
99 | #define task_pt_regs(task) \ | 99 | #define task_pt_regs(task) \ |
100 | ((struct pt_regs *) ((unsigned long)(task)->thread_info + THREAD_SIZE \ | 100 | ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \ |
101 | - sizeof(unsigned long)) - 1) | 101 | - sizeof(unsigned long)) - 1) |
102 | #endif | 102 | #endif |
103 | 103 | ||