sh64: kernel: use 'usp' instead of 'fn'
authorChen Gang <gang.chen@asianux.com>
Tue, 12 Nov 2013 23:06:46 +0000 (15:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:08:59 +0000 (12:08 +0900)
'fn' is not defined, according to the implementation copy_thread() in
'sh32', need use 'usp' instead of.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sh/kernel/process_64.c

index 174d124..eac5947 100644 (file)
@@ -393,7 +393,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
        if (unlikely(p->flags & PF_KTHREAD)) {
                memset(childregs, 0, sizeof(struct pt_regs));
                childregs->regs[2] = (unsigned long)arg;
-               childregs->regs[3] = (unsigned long)fn;
+               childregs->regs[3] = (unsigned long)usp;
                childregs->sr = (1 << 30); /* not user_mode */
                childregs->sr |= SR_FD; /* Invalidate FPU flag */
                p->thread.pc = (unsigned long) ret_from_kernel_thread;