powerpc/exec: Set thread.regs early during exec
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 27 Nov 2020 04:44:11 +0000 (10:14 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:25 +0000 (01:01 +1100)
commitd7df77e89039623ededf0ece7b4358f7c9ecbaae
tree9841165f7760f6d7bf9b3914e341aef37240b1b2
parentd94b827e89dc3f92cd871d10f4992a6bd3c861e5
powerpc/exec: Set thread.regs early during exec

In later patches during exec, we would like to access default regs.amr to
control access to the user mapping. Having thread.regs set early makes the
code changes simpler.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201127044424.40686-10-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/process.c