summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/mce.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-08-02 20:56:32 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2019-08-30 10:32:34 +1000
commit0b66370c61fcf5fcc1d6901013e110284da6e2bb (patch)
tree4afed0e1cd9cd878eee11975e2fa3a9b3f3686db /arch/powerpc/kernel/mce.c
parentfa2760eca504f554a5adb6cd2f576828933c4c7b (diff)
downloadlinux-0b66370c61fcf5fcc1d6901013e110284da6e2bb.tar.gz
linux-0b66370c61fcf5fcc1d6901013e110284da6e2bb.tar.bz2
linux-0b66370c61fcf5fcc1d6901013e110284da6e2bb.zip
powerpc/64s/exception: machine check use correct cfar for late handler
Bare metal machine checks run an "early" handler in real mode before running the main handler which reports the event. The main handler runs exactly as a normal interrupt handler, after the "windup" which sets registers back as they were at interrupt entry. CFAR does not get restored by the windup code, so that will be wrong when the handler is run. Restore the CFAR to the saved value before running the late handler. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190802105709.27696-8-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/mce.c')
0 files changed, 0 insertions, 0 deletions