diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:55:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:55:53 -0500 |
commit | ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff (patch) | |
tree | 69c98b53ce9f269952d3e6f1f39fdba4b3d96544 /arch/arm/kernel/process.c | |
parent | 19da9b8b6ef80e4b1f870c0d270df32571fdaad6 (diff) | |
parent | 861e37ad5969f764574722f4cfc0734511cbac7f (diff) |
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 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, | |||
359 | struct thread_info *thread = p->thread_info; | 359 | struct thread_info *thread = p->thread_info; |
360 | struct pt_regs *childregs; | 360 | struct pt_regs *childregs; |
361 | 361 | ||
362 | childregs = ((struct pt_regs *)((unsigned long)thread + THREAD_START_SP)) - 1; | 362 | childregs = (void *)thread + THREAD_START_SP - sizeof(*regs); |
363 | *childregs = *regs; | 363 | *childregs = *regs; |
364 | childregs->ARM_r0 = 0; | 364 | childregs->ARM_r0 = 0; |
365 | childregs->ARM_sp = stack_start; | 365 | childregs->ARM_sp = stack_start; |