diff options
-rw-r--r-- | arch/h8300/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/h8300/kernel/process.c b/arch/h8300/kernel/process.c index 585ed5efd0f7..ed79ae20e88d 100644 --- a/arch/h8300/kernel/process.c +++ b/arch/h8300/kernel/process.c | |||
@@ -195,7 +195,7 @@ int copy_thread(int nr, unsigned long clone_flags, | |||
195 | { | 195 | { |
196 | struct pt_regs * childregs; | 196 | struct pt_regs * childregs; |
197 | 197 | ||
198 | childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p->thread_info)) - 1; | 198 | childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1; |
199 | 199 | ||
200 | *childregs = *regs; | 200 | *childregs = *regs; |
201 | childregs->retpc = (unsigned long) ret_from_fork; | 201 | childregs->retpc = (unsigned long) ret_from_fork; |