diff options
author | Anton Blanchard <anton@samba.org> | 2013-11-14 23:48:38 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-11-20 18:33:39 -0500 |
commit | 9db8bcfd73d4a18c0b3428c30557ccce1171d0af (patch) | |
tree | 6863387384fa68c1a605008313b826c6b6c4bb85 /arch | |
parent | c54006491dde7d1b8050c5542716b751be92ed80 (diff) |
powerpc: Remove a few lines of oops output
We waste quite a few lines in our oops output:
...
MSR: 8000000000009032 <SF,EE,ME,IR,DR,RI> CR: 28044024 XER: 00000000
SOFTE: 0
CFAR: 0000000000009088
DAR: 000000000000001c, DSISR: 40000000
GPR00: c0000000000c74f0 c00000037cc1b010 c000000000d2bb30 0000000000000000
...
We can do a better job here and remove 3 lines:
MSR: 8000000000009032 <SF,EE,ME,IR,DR,RI> CR: 28044024 XER: 00000000
CFAR: 0000000000009088 DAR: 0000000000000010, DSISR: 40000000 SOFTE: 1
GPR00: c0000000000e3d10 c00000037cc2fda0 c000000000d2c3a8 0000000000000001
Also move PACATMSCRATCH up, it doesn't really belong in the stack
trace section.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/process.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 37c4103a8cff..373980ae52ad 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -858,17 +858,20 @@ void show_regs(struct pt_regs * regs) | |||
858 | printk("MSR: "REG" ", regs->msr); | 858 | printk("MSR: "REG" ", regs->msr); |
859 | printbits(regs->msr, msr_bits); | 859 | printbits(regs->msr, msr_bits); |
860 | printk(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer); | 860 | printk(" CR: %08lx XER: %08lx\n", regs->ccr, regs->xer); |
861 | #ifdef CONFIG_PPC64 | ||
862 | printk("SOFTE: %ld\n", regs->softe); | ||
863 | #endif | ||
864 | trap = TRAP(regs); | 861 | trap = TRAP(regs); |
865 | if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) | 862 | if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) |
866 | printk("CFAR: "REG"\n", regs->orig_gpr3); | 863 | printk("CFAR: "REG" ", regs->orig_gpr3); |
867 | if (trap == 0x200 || trap == 0x300 || trap == 0x600) | 864 | if (trap == 0x200 || trap == 0x300 || trap == 0x600) |
868 | #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) | 865 | #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) |
869 | printk("DEAR: "REG", ESR: "REG"\n", regs->dar, regs->dsisr); | 866 | printk("DEAR: "REG" ESR: "REG" ", regs->dar, regs->dsisr); |
870 | #else | 867 | #else |
871 | printk("DAR: "REG", DSISR: %08lx\n", regs->dar, regs->dsisr); | 868 | printk("DAR: "REG" DSISR: %08lx ", regs->dar, regs->dsisr); |
869 | #endif | ||
870 | #ifdef CONFIG_PPC64 | ||
871 | printk("SOFTE: %ld ", regs->softe); | ||
872 | #endif | ||
873 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM | ||
874 | printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch); | ||
872 | #endif | 875 | #endif |
873 | 876 | ||
874 | for (i = 0; i < 32; i++) { | 877 | for (i = 0; i < 32; i++) { |
@@ -887,9 +890,6 @@ void show_regs(struct pt_regs * regs) | |||
887 | printk("NIP ["REG"] %pS\n", regs->nip, (void *)regs->nip); | 890 | printk("NIP ["REG"] %pS\n", regs->nip, (void *)regs->nip); |
888 | printk("LR ["REG"] %pS\n", regs->link, (void *)regs->link); | 891 | printk("LR ["REG"] %pS\n", regs->link, (void *)regs->link); |
889 | #endif | 892 | #endif |
890 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM | ||
891 | printk("PACATMSCRATCH [%llx]\n", get_paca()->tm_scratch); | ||
892 | #endif | ||
893 | show_stack(current, (unsigned long *) regs->gpr[1]); | 893 | show_stack(current, (unsigned long *) regs->gpr[1]); |
894 | if (!user_mode(regs)) | 894 | if (!user_mode(regs)) |
895 | show_instructions(regs); | 895 | show_instructions(regs); |