mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
powerpc: copy_thread make ret_from_fork register setup consistent
The ret_from_fork code for 64e and 32-bit set r3 for syscall_exit_prepare the same way that 64s does, so there should be no need to special-case them in copy_thread. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230325122904.2375060-3-npiggin@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
c013e9f2bb
commit
959791e45f
@@ -1784,9 +1784,6 @@ int copy_thread(struct task_struct *p, const struct kernel_clone_args *args)
|
||||
childregs->gpr[1] = usp;
|
||||
((unsigned long *)sp)[0] = childregs->gpr[1];
|
||||
p->thread.regs = childregs;
|
||||
/* 64s sets this in ret_from_fork */
|
||||
if (!IS_ENABLED(CONFIG_PPC_BOOK3S_64))
|
||||
childregs->gpr[3] = 0; /* Result from fork() */
|
||||
if (clone_flags & CLONE_SETTLS) {
|
||||
if (!is_32bit_task())
|
||||
childregs->gpr[13] = tls;
|
||||
|
||||
Reference in New Issue
Block a user