Skip to content

Commit 5130311

Browse files
leitaompe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 5c784c8 commit 5130311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ void program_check_exception(struct pt_regs *regs)
14331433
goto bail;
14341434
} else {
14351435
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);
14371437
die("Unrecoverable exception", regs, SIGABRT);
14381438
}
14391439
}

0 commit comments

Comments
 (0)