diff options
author | Nicholas Piggin <[email protected]> | 2021-05-14 14:40:08 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-05-14 17:28:54 +1000 |
commit | c6ac667b07996929835b512de0e9a988977e6abc (patch) | |
tree | fcffd01998c16028755fad9d92251d0f4ba62d19 /lib/mpi/mpi-add.c | |
parent | 4ec5feec1ad029bdf7d49bc50ccc0c195eeabe93 (diff) |
powerpc/64e/interrupt: Fix nvgprs being clobbered
Some interrupt handlers have an "extra" that saves 1 or 2
registers (r14, r15) in the paca save area and makes them available to
use by the handler.
The change to always save nvgprs in exception handlers lead to some
interrupt handlers saving those scratch r14 / r15 registers into the
interrupt frame's GPR saves, which get restored on interrupt exit.
Fix this by always reloading those scratch registers from paca before
the EXCEPTION_COMMON that saves nvgprs.
Fixes: 4228b2c3d20e ("powerpc/64e/interrupt: always save nvgprs on interrupt")
Reported-by: Christian Zigotzky <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Tested-by: Christian Zigotzky <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions