powerpc: flexible GPR range save/restore macros
authorNicholas Piggin <npiggin@gmail.com>
Fri, 22 Oct 2021 06:13:22 +0000 (16:13 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:35:02 +0000 (16:35 +0200)
commited8a5d63a0da5ea9ed910918be134669ca39454b
tree36d44456fc340e193b7797b0eae07486eda8acac
parent0a80e66a10af2b74c68739927201f4d5aebc467f
powerpc: flexible GPR range save/restore macros

[ Upstream commit aebd1fb45c622e9a2b06fb70665d084d3a8d6c78 ]

Introduce macros that operate on a (start, end) range of GPRs, which
reduces lines of code and need to do mental arithmetic while reading the
code.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211022061322.2671178-1-npiggin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
15 files changed:
arch/powerpc/boot/crt0.S
arch/powerpc/crypto/md5-asm.S
arch/powerpc/crypto/sha1-powerpc-asm.S
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/head_32.h
arch/powerpc/kernel/head_booke.h
arch/powerpc/kernel/interrupt_64.S
arch/powerpc/kernel/optprobes_head.S
arch/powerpc/kernel/tm.S
arch/powerpc/kernel/trace/ftrace_64_mprofile.S
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/lib/test_emulate_step_exec_instr.S