Skip to contentSkip to conversation

sh64: kernel: use 'usp' instead of 'fn'

PATCH New Chen Gang 1 participant 1 message Jul 30, 2013 SuperH

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/2 sh64: kernel: use 'usp' instead of 'fn'

'fn' is not defined, according to the implementation copy_thread() in 'sh32', need use 'usp' instead of.

---
 arch/sh/kernel/process_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sh/kernel/process_64.c +1 -1
index 174d124..eac5947 100644
@@ -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;
Signature · 1 line
1.7.7.6