From: Paul Burton Date: Fri, 9 Nov 2018 20:08:36 +0000 (+0000) Subject: MIPS: Don't dump Hi & Lo regs on >= MIPSr6 X-Git-Tag: v5.4-rc1~1858^2~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6d18e77041edae105b32d667c28fe752534f691;p=platform%2Fkernel%2Flinux-rpi.git MIPS: Don't dump Hi & Lo regs on >= MIPSr6 MIPSr6 removed the Hi & Lo registers, so displaying their values on MIPSr6 systems is pointless. Avoid doing so. Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/21067/ Cc: linux-mips@linux-mips.org --- diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 6eb89fd..b34f9a7 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -277,8 +278,10 @@ static void __show_regs(const struct pt_regs *regs) #ifdef CONFIG_CPU_HAS_SMARTMIPS printk("Acx : %0*lx\n", field, regs->acx); #endif - printk("Hi : %0*lx\n", field, regs->hi); - printk("Lo : %0*lx\n", field, regs->lo); + if (MIPS_ISA_REV < 6) { + printk("Hi : %0*lx\n", field, regs->hi); + printk("Lo : %0*lx\n", field, regs->lo); + } /* * Saved cp0 registers