diff options
Diffstat (limited to 'arch/sh/kernel/process_64.c')
-rw-r--r-- | arch/sh/kernel/process_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 174d124b419e..e2062e643341 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
@@ -374,7 +374,7 @@ asmlinkage void ret_from_kernel_thread(void); | |||
374 | int copy_thread(unsigned long clone_flags, unsigned long usp, | 374 | int copy_thread(unsigned long clone_flags, unsigned long usp, |
375 | unsigned long arg, struct task_struct *p) | 375 | unsigned long arg, struct task_struct *p) |
376 | { | 376 | { |
377 | struct pt_regs *childregs, *regs = current_pt_regs(); | 377 | struct pt_regs *childregs; |
378 | 378 | ||
379 | #ifdef CONFIG_SH_FPU | 379 | #ifdef CONFIG_SH_FPU |
380 | /* can't happen for a kernel thread */ | 380 | /* can't happen for a kernel thread */ |
@@ -393,7 +393,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, | |||
393 | if (unlikely(p->flags & PF_KTHREAD)) { | 393 | if (unlikely(p->flags & PF_KTHREAD)) { |
394 | memset(childregs, 0, sizeof(struct pt_regs)); | 394 | memset(childregs, 0, sizeof(struct pt_regs)); |
395 | childregs->regs[2] = (unsigned long)arg; | 395 | childregs->regs[2] = (unsigned long)arg; |
396 | childregs->regs[3] = (unsigned long)fn; | 396 | childregs->regs[3] = (unsigned long)usp; |
397 | childregs->sr = (1 << 30); /* not user_mode */ | 397 | childregs->sr = (1 << 30); /* not user_mode */ |
398 | childregs->sr |= SR_FD; /* Invalidate FPU flag */ | 398 | childregs->sr |= SR_FD; /* Invalidate FPU flag */ |
399 | p->thread.pc = (unsigned long) ret_from_kernel_thread; | 399 | p->thread.pc = (unsigned long) ret_from_kernel_thread; |