mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:26:44 +07:00
powerpc: Revert show_regs() define for readability
We had an existing ifdef for 4xx & BOOKE processors that got changed to CONFIG_PPC_ADV_DEBUG_REGS. The define has nothing to do with CONFIG_PPC_ADV_DEBUG_REGS. The define really should be: #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) and not #ifdef CONFIG_PPC_ADV_DEBUG_REGS Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
7eaf09eefe
commit
ba28c9aae2
@ -657,7 +657,7 @@ void show_regs(struct pt_regs * regs)
|
|||||||
if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR))
|
if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR))
|
||||||
printk("CFAR: "REG"\n", regs->orig_gpr3);
|
printk("CFAR: "REG"\n", regs->orig_gpr3);
|
||||||
if (trap == 0x300 || trap == 0x600)
|
if (trap == 0x300 || trap == 0x600)
|
||||||
#ifdef CONFIG_PPC_ADV_DEBUG_REGS
|
#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
|
||||||
printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr);
|
printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr);
|
||||||
#else
|
#else
|
||||||
printk("DAR: "REG", DSISR: %08lx\n", regs->dar, regs->dsisr);
|
printk("DAR: "REG", DSISR: %08lx\n", regs->dar, regs->dsisr);
|
||||||
|
Loading…
Reference in New Issue
Block a user