Commit 49129844 authored by Krzysztof Helt's avatar Krzysztof Helt Committed by David S. Miller

[SPARC32]: Need to clear PSR_EF in psr of childregs on fork() on SMP.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f13cc8f4
......@@ -549,6 +549,11 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long sp,
}
}
#ifdef CONFIG_SMP
/* FPU must be disabled on SMP. */
childregs->psr &= ~PSR_EF;
#endif
/* Set the return value for the child. */
childregs->u_regs[UREG_I0] = current->pid;
childregs->u_regs[UREG_I1] = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment