diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:53 -0800 |
commit | 308a792f7c563a7af6e325274c63812f98988d6f (patch) | |
tree | dc69f570a04bbf43403dea756fca44a4a7d132fc /arch | |
parent | cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8 (diff) | |
download | op-kernel-dev-308a792f7c563a7af6e325274c63812f98988d6f.zip op-kernel-dev-308a792f7c563a7af6e325274c63812f98988d6f.tar.gz |
[PATCH] sh: 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 'arch')
-rw-r--r-- | arch/sh/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 35415d0..aac15e4 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c @@ -270,7 +270,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, if (user_mode(regs)) { childregs->regs[15] = usp; } else { - childregs->regs[15] = (unsigned long)p->thread_info + THREAD_SIZE; + childregs->regs[15] = (unsigned long)task_stack_page(p) + THREAD_SIZE; } if (clone_flags & CLONE_SETTLS) { childregs->gbr = childregs->regs[0]; |