Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/tm: Print 64-bits MSR

On a kernel TM Bad thing program exception, the Machine State Register
(MSR) is not being properly displayed. The exception code dumps a 32-bits
value but MSR is a 64 bits register for all platforms that have HTM
enabled.

This patch dumps the MSR value as a 64-bits value instead of 32 bits. In
order to do so, the 'reason' variable could not be used, since it trimmed
MSR to 32-bits (int).

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Breno Leitao and committed by
Michael Ellerman
51303113 5c784c84

+1 -1
+1 -1
arch/powerpc/kernel/traps.c
··· 1433 1433 goto bail; 1434 1434 } else { 1435 1435 printk(KERN_EMERG "Unexpected TM Bad Thing exception " 1436 - "at %lx (msr 0x%x)\n", regs->nip, reason); 1436 + "at %lx (msr 0x%lx)\n", regs->nip, regs->msr); 1437 1437 die("Unrecoverable exception", regs, SIGABRT); 1438 1438 } 1439 1439 }