linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/tm: Print 64-bits MSR
@ 2018-08-07  0:32 Breno Leitao
  2018-08-07  1:17 ` Michael Neuling
  0 siblings, 1 reply; 9+ messages in thread
From: Breno Leitao @ 2018-08-07  0:32 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mikey, Breno Leitao

On a kernel TM Bad thing program exception, the MSR is not being properly
displayed, since it dumps a 32-bits value. MSR is a 64 bits register for
all platforms that have HTM enabled.

This patch dumps the MSR value as 64-bits instead of 32 bits.

Signed-off-by: Breno Leitao <leitao@debian.org>
---
 arch/powerpc/kernel/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index 0e17dcb48720..cd561fd89532 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -1402,7 +1402,7 @@ void program_check_exception(struct pt_regs *regs)
 			goto bail;
 		} else {
 			printk(KERN_EMERG "Unexpected TM Bad Thing exception "
-			       "at %lx (msr 0x%x)\n", regs->nip, reason);
+			       "at %lx (msr 0x%lx)\n", regs->nip, regs->msr);
 			die("Unrecoverable exception", regs, SIGABRT);
 		}
 	}
-- 
2.16.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-04  6:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07  0:32 [PATCH] powerpc/tm: Print 64-bits MSR Breno Leitao
2018-08-07  1:17 ` Michael Neuling
2018-08-07 13:35   ` [PATCH v2] " Breno Leitao
2018-08-07 15:50     ` Segher Boessenkool
2018-08-07 17:15     ` Christophe LEROY
2018-08-07 18:41       ` Breno Leitao
2018-08-07 18:57         ` LEROY Christophe
2018-08-08 15:50           ` Breno Leitao
2018-10-04  6:14     ` [v2] " Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).