diff options
Diffstat (limited to 'arch')
-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 ba298277becd..07fb744f8a68 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -355,7 +355,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start, | |||
355 | struct thread_info *thread = p->thread_info; | 355 | struct thread_info *thread = p->thread_info; |
356 | struct pt_regs *childregs; | 356 | struct pt_regs *childregs; |
357 | 357 | ||
358 | childregs = ((struct pt_regs *)((unsigned long)thread + THREAD_START_SP)) - 1; | 358 | childregs = (void *)thread + THREAD_START_SP - sizeof(*regs); |
359 | *childregs = *regs; | 359 | *childregs = *regs; |
360 | childregs->ARM_r0 = 0; | 360 | childregs->ARM_r0 = 0; |
361 | childregs->ARM_sp = stack_start; | 361 | childregs->ARM_sp = stack_start; |