powerpc/32: Use SPRN_SPRG_SCRATCH2 in exception prologs
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 25 Nov 2020 07:10:53 +0000 (07:10 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:32 +0000 (01:01 +1100)
commitd2e006036082e2dc394c5ec86c5bb88cc27c0749
tree55a73d0fd425ee36fe3af855dd7d97756ed18c23
parentde1cd0790697e67b728de43e8657bb52f528bfb9
powerpc/32: Use SPRN_SPRG_SCRATCH2 in exception prologs

Use SPRN_SPRG_SCRATCH2 as a third scratch register in
exception prologs in order to simplify them and avoid
data going back and forth from/to CR.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/6f5c8a7faa8cc54acb89c55c20aa579a2f30a4e9.1606285014.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_32.h