Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 print_trapframe() should print out ...



details:   https://anonhg.NetBSD.org/src/rev/d7acd5451958
branches:  trunk
changeset: 815133:d7acd5451958
user:      palle <palle%NetBSD.org@localhost>
date:      Sun May 01 19:57:55 2016 +0000

description:
print_trapframe() should print out Local and In registers as well

diffstat:

 sys/arch/sparc64/sparc64/trap.c |  30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diffs (68 lines):

diff -r eeab17454bde -r d7acd5451958 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c   Sun May 01 19:41:01 2016 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c   Sun May 01 19:57:55 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.181 2015/02/28 21:44:33 martin Exp $ */
+/*     $NetBSD: trap.c,v 1.182 2016/05/01 19:57:55 palle Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.181 2015/02/28 21:44:33 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.182 2016/05/01 19:57:55 palle Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -388,14 +388,14 @@
               tf, (u_long)tf->tf_tstate, (u_long)tf->tf_pc, (u_long)tf->tf_npc);
        printf("fault: %p\ty: %x\t", 
               (void *)(u_long)tf->tf_fault, (int)tf->tf_y);
-       printf("pil: %d\toldpil: %d\ttt: %x\tGlobals:\n", 
+       printf("pil: %d\toldpil: %d\ttt: %x\nGlobals:\n", 
               (int)tf->tf_pil, (int)tf->tf_oldpil, (int)tf->tf_tt);
        printf("%08x%08x %08x%08x %08x%08x %08x%08x\n",
               (u_int)(tf->tf_global[0]>>32), (u_int)tf->tf_global[0],
               (u_int)(tf->tf_global[1]>>32), (u_int)tf->tf_global[1],
               (u_int)(tf->tf_global[2]>>32), (u_int)tf->tf_global[2],
               (u_int)(tf->tf_global[3]>>32), (u_int)tf->tf_global[3]);
-       printf("%08x%08x %08x%08x %08x%08x %08x%08x\nouts:\n",
+       printf("%08x%08x %08x%08x %08x%08x %08x%08x\nOuts:\n",
               (u_int)(tf->tf_global[4]>>32), (u_int)tf->tf_global[4],
               (u_int)(tf->tf_global[5]>>32), (u_int)tf->tf_global[5],
               (u_int)(tf->tf_global[6]>>32), (u_int)tf->tf_global[6],
@@ -406,11 +406,31 @@
               (u_int)(tf->tf_out[1]>>32), (u_int)tf->tf_out[1],
               (u_int)(tf->tf_out[2]>>32), (u_int)tf->tf_out[2],
               (u_int)(tf->tf_out[3]>>32), (u_int)tf->tf_out[3]);
-       printf("%08x%08x %08x%08x %08x%08x %08x%08x\n",
+       printf("%08x%08x %08x%08x %08x%08x %08x%08x\nLocals:\n",
               (u_int)(tf->tf_out[4]>>32), (u_int)tf->tf_out[4],
               (u_int)(tf->tf_out[5]>>32), (u_int)tf->tf_out[5],
               (u_int)(tf->tf_out[6]>>32), (u_int)tf->tf_out[6],
               (u_int)(tf->tf_out[7]>>32), (u_int)tf->tf_out[7]);
+       printf("%08x%08x %08x%08x %08x%08x %08x%08x\n",
+              (u_int)(tf->tf_local[0]>>32), (u_int)tf->tf_local[0],
+              (u_int)(tf->tf_local[1]>>32), (u_int)tf->tf_local[1],
+              (u_int)(tf->tf_local[2]>>32), (u_int)tf->tf_local[2],
+              (u_int)(tf->tf_local[3]>>32), (u_int)tf->tf_local[3]);
+       printf("%08x%08x %08x%08x %08x%08x %08x%08x\nIns:\n",
+              (u_int)(tf->tf_local[4]>>32), (u_int)tf->tf_local[4],
+              (u_int)(tf->tf_local[5]>>32), (u_int)tf->tf_local[5],
+              (u_int)(tf->tf_local[6]>>32), (u_int)tf->tf_local[6],
+              (u_int)(tf->tf_local[7]>>32), (u_int)tf->tf_local[7]);
+       printf("%08x%08x %08x%08x %08x%08x %08x%08x\n",
+              (u_int)(tf->tf_in[0]>>32), (u_int)tf->tf_in[0],
+              (u_int)(tf->tf_in[1]>>32), (u_int)tf->tf_in[1],
+              (u_int)(tf->tf_in[2]>>32), (u_int)tf->tf_in[2],
+              (u_int)(tf->tf_in[3]>>32), (u_int)tf->tf_in[3]);
+       printf("%08x%08x %08x%08x %08x%08x %08x%08x\n",
+              (u_int)(tf->tf_in[4]>>32), (u_int)tf->tf_in[4],
+              (u_int)(tf->tf_in[5]>>32), (u_int)tf->tf_in[5],
+              (u_int)(tf->tf_in[6]>>32), (u_int)tf->tf_in[6],
+              (u_int)(tf->tf_in[7]>>32), (u_int)tf->tf_in[7]);
 #endif
 
 }



Home | Main Index | Thread Index | Old Index