summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/process.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 01:05:57 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 09:08:55 -0800
commit815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac (patch)
treefe2e78f38963c0de63e032ec84b25a56ce963bd1 /arch/arm/kernel/process.c
parente7c1b32fd354c34c4dceb1736a485bc5d91f7c43 (diff)
downloadop-kernel-dev-815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac.zip
op-kernel-dev-815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac.tar.gz
[PATCH] arm: task_pt_regs()
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/arm/kernel/process.c')
-rw-r--r--arch/arm/kernel/process.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index 46d0984..91d107d 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -355,10 +355,9 @@ int
copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start,
unsigned long stk_sz, struct task_struct *p, struct pt_regs *regs)
{
- struct thread_info *thread = p->thread_info;
- struct pt_regs *childregs;
+ struct thread_info *thread = task_thread_info(p);
+ struct pt_regs *childregs = task_pt_regs(p);
- childregs = (void *)thread + THREAD_START_SP - sizeof(*regs);
*childregs = *regs;
childregs->ARM_r0 = 0;
childregs->ARM_sp = stack_start;
OpenPOWER on IntegriCloud