summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/process.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 17:55:53 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 17:55:53 +0100
commitac111bfaa6b0b3c0edc63c27bd9617d6b08851ff (patch)
tree69c98b53ce9f269952d3e6f1f39fdba4b3d96544 /arch/arm/kernel/process.c
parentMerge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/... (diff)
parent[ARM] 3057/1: Add memory control method to support OneNAND sync burst read (diff)
downloadlinux-ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff.tar.xz
linux-ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff.zip
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Diffstat (limited to 'arch/arm/kernel/process.c')
-rw-r--r--arch/arm/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index c0f6a119de3b..30494aab829a 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -359,7 +359,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start,
struct thread_info *thread = p->thread_info;
struct pt_regs *childregs;
- childregs = ((struct pt_regs *)((unsigned long)thread + THREAD_START_SP)) - 1;
+ childregs = (void *)thread + THREAD_START_SP - sizeof(*regs);
*childregs = *regs;
childregs->ARM_r0 = 0;
childregs->ARM_sp = stack_start;