powerpc/64s/exception: machine check restructure to reuse common macros
authorNicholas Piggin <npiggin@gmail.com>
Fri, 2 Aug 2019 10:56:36 +0000 (20:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Aug 2019 00:32:35 +0000 (10:32 +1000)
commitc8eb54dbc8087c3d114cb583925395e211bfffa4
treeb3531ebf00f9eb21e9bc0a935c9aadd264a6182d
parent272f636445cf556498c8840dc63ad1218e94391b
powerpc/64s/exception: machine check restructure to reuse common macros

Follow the pattern of sreset and HMI handlers more closely: use
EXCEPTION_PROLOG_COMMON_1 rather than open-coding it, and run the
handler at the relocated location.

This helps later simplification and code sharing.

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-12-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S