Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc Make ALI trap print DSISR.



details:   https://anonhg.NetBSD.org/src/rev/64ab6f9de223
branches:  trunk
changeset: 544192:64ab6f9de223
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 14 05:38:53 2003 +0000

description:
Make ALI trap print DSISR.

diffstat:

 sys/arch/powerpc/powerpc/db_trace.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 7ca5077cbe37 -r 64ab6f9de223 sys/arch/powerpc/powerpc/db_trace.c
--- a/sys/arch/powerpc/powerpc/db_trace.c       Fri Mar 14 05:37:51 2003 +0000
+++ b/sys/arch/powerpc/powerpc/db_trace.c       Fri Mar 14 05:38:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.26 2003/02/03 17:10:11 matt Exp $       */
+/*     $NetBSD: db_trace.c,v 1.27 2003/03/14 05:38:53 matt Exp $       */
 /*     $OpenBSD: db_trace.c,v 1.3 1997/03/21 02:10:48 niklas Exp $     */
 
 /* 
@@ -211,6 +211,14 @@
                                    tf->dar);
 #endif
                                goto print_trap;
+                       case EXC_ALI:
+#ifdef PPC_OEA
+                               (*pr)("ALI trap @ %#x (DSISR %#x) ",
+                                   tf->dar, tf->dsisr);
+                               goto print_trap;
+#else
+                               trapstr = "ALI"; break;
+#endif
                        case EXC_ISI: trapstr = "ISI"; break;
                        case EXC_PGM: trapstr = "PGM"; break;
                        case EXC_SC: trapstr = "SC"; break;
@@ -220,7 +228,6 @@
                        case EXC_FPU: trapstr = "FPU"; break;
                        case EXC_FPA: trapstr = "FPA"; break;
                        case EXC_DECR: trapstr = "DECR"; break;
-                       case EXC_ALI: trapstr = "ALI"; break;
                        case EXC_BPT: trapstr = "BPT"; break;
                        case EXC_TRC: trapstr = "TRC"; break;
                        case EXC_RUNMODETRC: trapstr = "RUNMODETRC"; break;



Home | Main Index | Thread Index | Old Index