From 5c772ede332074c13005e16d5e353e11246bda79 Mon Sep 17 00:00:00 2001 From: weissms Date: Wed, 26 Dec 2012 13:26:31 +0000 Subject: [PATCH] Reenabled some debug output. Give people with null modem a chance to see unhandled exception output and use the built-in debugger. Also output machine check status register on machine check interrupt. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46157 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/ppc-sam440/kernel/intr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/ppc-sam440/kernel/intr.c b/arch/ppc-sam440/kernel/intr.c index 0ed81bda67..f9dcf15a70 100644 --- a/arch/ppc-sam440/kernel/intr.c +++ b/arch/ppc-sam440/kernel/intr.c @@ -1,5 +1,4 @@ - -#include +#define DEBUG 1 #include #include #include @@ -130,6 +129,10 @@ void dumpregs(context_t *ctx, uint8_t exception) bug("[KRN] SRR0=%08x, SRR1=%08x DEAR=%08x ESR=%08x\n",ctx->cpu.srr0, ctx->cpu.srr1, rdspr(DEAR), rdspr(ESR)); bug("[KRN] CTR=%08x LR=%08x XER=%08x CCR=%08x\n", ctx->cpu.ctr, ctx->cpu.lr, ctx->cpu.xer, ctx->cpu.ccr); bug("[KRN] DAR=%08x DSISR=%08x\n", ctx->cpu.dar, ctx->cpu.dsisr); + if (exception == 1) + { + bug("[KRN] MCSR=%08x\n", rdspr(MCSR)); + } for (i = 0; i < 32; i++) { if ((i & 3) == 0) -- 2.11.4.GIT