diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 08:55:53 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 08:55:53 -0800 |
commit | ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff (patch) | |
tree | 69c98b53ce9f269952d3e6f1f39fdba4b3d96544 /arch/arm/kernel/process.c | |
parent | 19da9b8b6ef80e4b1f870c0d270df32571fdaad6 (diff) | |
parent | 861e37ad5969f764574722f4cfc0734511cbac7f (diff) | |
download | op-kernel-dev-ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff.zip op-kernel-dev-ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index c0f6a11..30494aa 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; |