diff options
author | Wolfgang Denk <wd@denx.de> | 2007-08-13 22:00:25 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-08-13 22:00:25 +0200 |
commit | 8a92b7c60b40ff79e2cc96e13aeac2a531dde473 (patch) | |
tree | 8a1d8883fa6868b8c0acd529b49fd5c00b425301 /cpu/mpc86xx/traps.c | |
parent | be5d72d10d47609326226225181e301fb9a33b58 (diff) | |
parent | 8e2dd87eee01bb1b83beab7caf22b851c5cafb2c (diff) | |
download | u-boot-imx-8a92b7c60b40ff79e2cc96e13aeac2a531dde473.zip u-boot-imx-8a92b7c60b40ff79e2cc96e13aeac2a531dde473.tar.gz u-boot-imx-8a92b7c60b40ff79e2cc96e13aeac2a531dde473.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-mpc86xx
Diffstat (limited to 'cpu/mpc86xx/traps.c')
-rw-r--r-- | cpu/mpc86xx/traps.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpu/mpc86xx/traps.c b/cpu/mpc86xx/traps.c index fab1975..c84bfbf 100644 --- a/cpu/mpc86xx/traps.c +++ b/cpu/mpc86xx/traps.c @@ -130,8 +130,11 @@ MachineCheckException(struct pt_regs *regs) printf("Machine check in kernel mode.\n"); printf("Caused by (from msr): "); printf("regs %p ", regs); - switch (regs->msr & 0x000F0000) { - case (0x80000000 >> 12): + switch ( regs->msr & 0x001F0000) { + case (0x80000000>>11): + printf("MSS error. MSSSR0: %08x\n", mfspr(SPRN_MSSSR0)); + break; + case (0x80000000>>12): printf("Machine check signal - probably due to mm fault\n" "with mmu off\n"); break; @@ -209,6 +212,7 @@ UnknownException(struct pt_regs *regs) if (debugger_exception_handler && (*debugger_exception_handler) (regs)) return; #endif + printf("UnknownException regs@%x\n", regs); printf("Bad trap at PC: %lx, SR: %lx, vector=%lx\n", regs->nip, regs->msr, regs->trap); _exception(0, regs); |