diff options
author | Anton Blanchard <anton@samba.org> | 2013-11-14 23:41:19 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-11-20 18:33:38 -0500 |
commit | c54006491dde7d1b8050c5542716b751be92ed80 (patch) | |
tree | 50c64ae1dacbbd9084b94348e2118cdd66b413a0 /arch/powerpc/kernel | |
parent | 95f715b08fa4a953771398d20cbe35a6803ea41d (diff) |
powerpc: Print DAR and DSISR on machine check oopses
Machine check exceptions set DAR and DSISR, so print them in our
oops output.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 75c2d1009985..37c4103a8cff 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -864,7 +864,7 @@ void show_regs(struct pt_regs * regs) | |||
864 | trap = TRAP(regs); | 864 | trap = TRAP(regs); |
865 | if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) | 865 | if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) |
866 | printk("CFAR: "REG"\n", regs->orig_gpr3); | 866 | printk("CFAR: "REG"\n", regs->orig_gpr3); |
867 | if (trap == 0x300 || trap == 0x600) | 867 | if (trap == 0x200 || trap == 0x300 || trap == 0x600) |
868 | #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) | 868 | #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) |
869 | printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr); | 869 | printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr); |
870 | #else | 870 | #else |