]> Git Repo - linux.git/commitdiff
powerpc: Print DAR and DSISR on machine check oopses
authorAnton Blanchard <[email protected]>
Fri, 15 Nov 2013 04:41:19 +0000 (15:41 +1100)
committerBenjamin Herrenschmidt <[email protected]>
Wed, 20 Nov 2013 23:33:38 +0000 (10:33 +1100)
Machine check exceptions set DAR and DSISR, so print them in our
oops output.

Signed-off-by: Anton Blanchard <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
arch/powerpc/kernel/process.c

index 75c2d1009985eb8dbd9f3995fc900f9f21227d01..37c4103a8cff6372206cf5bd62b26f598f8d8223 100644 (file)
@@ -864,7 +864,7 @@ void show_regs(struct pt_regs * regs)
        trap = TRAP(regs);
        if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR))
                printk("CFAR: "REG"\n", regs->orig_gpr3);
-       if (trap == 0x300 || trap == 0x600)
+       if (trap == 0x200 || trap == 0x300 || trap == 0x600)
 #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
                printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr);
 #else
This page took 0.05917 seconds and 4 git commands to generate.