]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/tm: Print 64-bits MSR
authorBreno Leitao <leitao@debian.org>
Tue, 7 Aug 2018 13:35:00 +0000 (10:35 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Oct 2018 05:40:05 +0000 (15:40 +1000)
commit9d4b636913d3697da13e22425a6224b7c06a6ea2
treefd356bd69db46575cc18852979da984993c72813
parent3d43dc928d1dcc1454478244bd8c7dc8dba99584
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>
arch/powerpc/kernel/traps.c