diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2020-12-22 08:11:18 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-01-04 13:59:25 +0100 |
commit | 98bf2d3f4970179c702ef64db658e0553bc6ef3a (patch) | |
tree | ebdff04a9f0df37ca470b4d8bccdf68dc8569d5f /kernel | |
parent | Linux 5.11-rc2 (diff) | |
download | linux-98bf2d3f4970179c702ef64db658e0553bc6ef3a.tar.xz linux-98bf2d3f4970179c702ef64db658e0553bc6ef3a.zip |
powerpc/32s: Fix RTAS machine check with VMAP stack
When we have VMAP stack, exception prolog 1 sets r1, not r11.
When it is not an RTAS machine check, don't trash r1 because it is
needed by prolog 1.
Fixes: da7bb43ab9da ("powerpc/32: Fix vmap stack - Properly set r1 before activating MMU")
Fixes: d2e006036082 ("powerpc/32: Use SPRN_SPRG_SCRATCH2 in exception prologs")
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Squash in fixup for RTAS machine check from Christophe]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bc77d61d1c18940e456a2dee464f1e2eda65a3f0.1608621048.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions