]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8efe4643d5dead716cb398f0ed4cbb5d70da35c7
treeb3531ebf00f9eb21e9bc0a935c9aadd264a6182d
parenta28b378c39ac8419f0fe7af0fc8bd4b73410b04a
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