aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon/xmon.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2013-04-28 05:37:26 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-04-30 01:59:42 -0400
commitce54152f429ed5e6ad83e5e9f61825b5a795dd1e (patch)
tree511310b26dd12bc4572ecb71a3b97ab392a55b6c /arch/powerpc/xmon/xmon.c
parent4b8f63d92e30ffd33bd77e028918919be2d926e6 (diff)
powerpc: Save DAR and DSISR in pt_regs on MCE
We were not saving DAR and DSISR on MCE. Save then and also print the values along with exception details in xmon. Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
-rw-r--r--arch/powerpc/xmon/xmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 13f85defabed..51e237c4648f 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1430,7 +1430,7 @@ static void excprint(struct pt_regs *fp)
1430 printf(" sp: %lx\n", fp->gpr[1]); 1430 printf(" sp: %lx\n", fp->gpr[1]);
1431 printf(" msr: %lx\n", fp->msr); 1431 printf(" msr: %lx\n", fp->msr);
1432 1432
1433 if (trap == 0x300 || trap == 0x380 || trap == 0x600) { 1433 if (trap == 0x300 || trap == 0x380 || trap == 0x600 || trap == 0x200) {
1434 printf(" dar: %lx\n", fp->dar); 1434 printf(" dar: %lx\n", fp->dar);
1435 if (trap != 0x380) 1435 if (trap != 0x380)
1436 printf(" dsisr: %lx\n", fp->dsisr); 1436 printf(" dsisr: %lx\n", fp->dsisr);