diff options
author | Michael Neuling <mikey@neuling.org> | 2011-07-14 15:25:12 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-19 01:13:33 -0400 |
commit | 5115a026cebeb5537016497e78f4402e5d4ac54e (patch) | |
tree | 5855715e71a56ac91bbbd13269bfb9914a12f52a /arch/powerpc/kernel | |
parent | 762e77ae7dd055d0b77e0ad34d87db7416df109e (diff) |
powerpc: Add CFAR to oops output
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>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 885a2dd2ab80..d1aa3f43a68c 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -650,6 +650,8 @@ void show_regs(struct pt_regs * regs) | |||
650 | printbits(regs->msr, msr_bits); | 650 | printbits(regs->msr, msr_bits); |
651 | printk(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer); | 651 | printk(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer); |
652 | trap = TRAP(regs); | 652 | trap = TRAP(regs); |
653 | if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) | ||
654 | printk("CFAR: "REG"\n", regs->orig_gpr3); | ||
653 | if (trap == 0x300 || trap == 0x600) | 655 | if (trap == 0x300 || trap == 0x600) |
654 | #ifdef CONFIG_PPC_ADV_DEBUG_REGS | 656 | #ifdef CONFIG_PPC_ADV_DEBUG_REGS |
655 | printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr); | 657 | printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr); |