]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/44x: Move 44x machine check handlers into platforms/44x
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Aug 2017 06:39:19 +0000 (16:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 13:31:24 +0000 (23:31 +1000)
commit20de4c5e8a5a4e71e702c89c532a3ac486418eda
tree621d5688113c5a9ced679f8857a6c5362505263e
parent29aebaab8e7b5aedeb25d2545f53b84b121d4619
powerpc/44x: Move 44x machine check handlers into platforms/44x

We have several 44x machine check handlers defined in traps.c. It would
be preferable if they were split out with the platforms that use them.
Do that.

In the process, drop get_mc_reason() and instead just open code the
lookup of reason from regs->dsisr. This avoids a pointless layer of
abstraction.

We know to use regs->dsisr because 44x enables BOOKE which enables
PPC_ADV_DEBUG_REGS, and FSL_BOOKE is not enabled on 44x builds.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c
arch/powerpc/platforms/44x/Makefile
arch/powerpc/platforms/44x/machine_check.c [new file with mode: 0644]