diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-26 19:25:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-28 22:42:44 -0500 |
commit | f01aceac61ad5cc9ea463f6bb185c1f72702357f (patch) | |
tree | 30144f74aedd0eb517d4c755a318a6b7241f2475 /arch/hexagon/kernel/process.c | |
parent | 0ad9513d0f81584c25f3fc7ff582c382cc1a93f7 (diff) | |
download | op-kernel-dev-f01aceac61ad5cc9ea463f6bb185c1f72702357f.zip op-kernel-dev-f01aceac61ad5cc9ea463f6bb185c1f72702357f.tar.gz |
hexagon: switch to generic clone()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/hexagon/kernel/process.c')
-rw-r--r-- | arch/hexagon/kernel/process.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/hexagon/kernel/process.c b/arch/hexagon/kernel/process.c index cfbc52b..36dce17 100644 --- a/arch/hexagon/kernel/process.c +++ b/arch/hexagon/kernel/process.c @@ -88,7 +88,7 @@ unsigned long thread_saved_pc(struct task_struct *tsk) */ int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, struct task_struct *p, - struct pt_regs *regs) + struct pt_regs *unused) { struct thread_info *ti = task_thread_info(p); struct hexagon_switch_stack *ss; @@ -117,10 +117,11 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, pt_set_kmode(childregs); return 0; } - memcpy(childregs, regs, sizeof(*childregs)); + memcpy(childregs, current_pt_regs(), sizeof(*childregs)); ss->r2524 = 0; - pt_set_rte_sp(childregs, usp); + if (usp) + pt_set_rte_sp(childregs, usp); /* Child sees zero return value */ childregs->r00 = 0; |