summaryrefslogtreecommitdiffstats
path: root/arch/h8300/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 10:05:55 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 18:08:55 +0100
commit68f8b1f8f113fcbc8d8e835f174b97cdaf96af20 (patch)
tree0064610b7aefea6f3740dd88d7a27d10514a61f3 /arch/h8300/kernel
parent[PATCH] parisc: task_stack_page(), task_thread_info() (diff)
downloadlinux-68f8b1f8f113fcbc8d8e835f174b97cdaf96af20.tar.xz
linux-68f8b1f8f113fcbc8d8e835f174b97cdaf96af20.zip
[PATCH] h8300: task_stack_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r--arch/h8300/kernel/process.c2
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,
{
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;