From: Al Viro Date: Thu, 12 Jan 2006 09:05:55 +0000 (-0800) Subject: [PATCH] h8300: task_stack_page() X-Git-Tag: v2.6.16-rc1~244 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=68f8b1f8f113fcbc8d8e835f174b97cdaf96af20;p=linux-2.6-omap-h63xx.git [PATCH] h8300: task_stack_page() Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/h8300/kernel/process.c b/arch/h8300/kernel/process.c index 585ed5efd0f..ed79ae20e88 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, { struct pt_regs * childregs; - childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p->thread_info)) - 1; + childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1; *childregs = *regs; childregs->retpc = (unsigned long) ret_from_fork;