Commit 14170789 authored by Kumar Gala's avatar Kumar Gala

[POWERPC] Fix register labels on show_regs() message for 4xx/Book-E

In a show_regs()  message The DEAR and ESR were reported as
DAR and DSISR which only exist on classic parts.
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent d1c81312
...@@ -423,7 +423,11 @@ void show_regs(struct pt_regs * regs) ...@@ -423,7 +423,11 @@ void show_regs(struct pt_regs * regs)
printk(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer); printk(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer);
trap = TRAP(regs); trap = TRAP(regs);
if (trap == 0x300 || trap == 0x600) if (trap == 0x300 || trap == 0x600)
#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr);
#else
printk("DAR: "REG", DSISR: "REG"\n", regs->dar, regs->dsisr); printk("DAR: "REG", DSISR: "REG"\n", regs->dar, regs->dsisr);
#endif
printk("TASK = %p[%d] '%s' THREAD: %p", printk("TASK = %p[%d] '%s' THREAD: %p",
current, current->pid, current->comm, task_thread_info(current)); current, current->pid, current->comm, task_thread_info(current));
......
Markdown is supported
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