]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64e: Clarify register saves and clears with {SAVE,ZEROIZE}_GPRS
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:46 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:15 +0000 (23:00 +1000)
commite37f24a0fbb6f08238c07569973e6e2f5dbeb337
tree0b2e5f7918be97dfe9c0e48c2df02ee048ae0e5a
parentfc304bfba0a42cb99316d275c133e4e02e679d75
powerpc/64e: Clarify register saves and clears with {SAVE,ZEROIZE}_GPRS

The common interrupt handler prologue macro and the bad_stack
trampolines include consecutive sequences of register saves, and some
register clears. Neaten such instances by expanding use of the SAVE_GPRS
macro and employing the ZEROIZE_GPR macro when appropriate.

Also simplify an invocation of SAVE_GPRS targetting all non-volatile
registers to SAVE_NVGPRS.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reported-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-7-rmclure@linux.ibm.com
arch/powerpc/kernel/exceptions-64e.S