aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/process.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 04:05:57 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 12:08:55 -0500
commit815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac (patch)
treefe2e78f38963c0de63e032ec84b25a56ce963bd1 /arch/arm/kernel/process.c
parente7c1b32fd354c34c4dceb1736a485bc5d91f7c43 (diff)
[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 46d0984b44ff..91d107d33c8d 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -355,10 +355,9 @@ int
355copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start, 355copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start,
356 unsigned long stk_sz, struct task_struct *p, struct pt_regs *regs) 356 unsigned long stk_sz, struct task_struct *p, struct pt_regs *regs)
357{ 357{
358 struct thread_info *thread = p->thread_info; 358 struct thread_info *thread = task_thread_info(p);
359 struct pt_regs *childregs; 359 struct pt_regs *childregs = task_pt_regs(p);
360 360
361 childregs = (void *)thread + THREAD_START_SP - sizeof(*regs);
362 *childregs = *regs; 361 *childregs = *regs;
363 childregs->ARM_r0 = 0; 362 childregs->ARM_r0 = 0;
364 childregs->ARM_sp = stack_start; 363 childregs->ARM_sp = stack_start;