diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:57 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:55 -0800 |
commit | 815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac (patch) | |
tree | fe2e78f38963c0de63e032ec84b25a56ce963bd1 /arch/arm/kernel/process.c | |
parent | e7c1b32fd354c34c4dceb1736a485bc5d91f7c43 (diff) | |
download | kernel-common-815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac.tar.gz kernel-common-815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac.tar.bz2 kernel-common-815d5ec86eb8d5f57e5e4aa147bd1fb6338c58ac.zip |
[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.c | 5 |
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 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; |