Skip to content
Commit 5b4e2857 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 8ab8fc68
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment