powerpc: Add CFAR to oops output
authorMichael Neuling <mikey@neuling.org>
Thu, 14 Jul 2011 19:25:12 +0000 (19:25 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 19 Jul 2011 05:13:33 +0000 (15:13 +1000)
Now we have the CFAR saved add it to the oops output.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/process.c

index 885a2dd..d1aa3f4 100644 (file)
@@ -650,6 +650,8 @@ void show_regs(struct pt_regs * regs)
        printbits(regs->msr, msr_bits);
        printk("  CR: %08lx  XER: %08lx\n", regs->ccr, regs->xer);
        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)
 #ifdef CONFIG_PPC_ADV_DEBUG_REGS
                printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr);