diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-11-12 18:06:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:08:59 -0500 |
commit | 42b43341b045227c5ffca04c2d9424c77abed4fb (patch) | |
tree | 4d88cab5f053f37dc64e6f5a4c67c031e9ff5457 /arch | |
parent | 786235eeba0e1e85e5cbbb9f97d1087ad03dfa21 (diff) |
sh64: kernel: use 'usp' instead of 'fn'
'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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/process_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 174d124b419e..eac5947ac063 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
@@ -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; |