Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode Be more verbose in trap.c on what...



details:   https://anonhg.NetBSD.org/src/rev/8dc51a592537
branches:  trunk
changeset: 769417:8dc51a592537
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Sep 09 12:21:57 2011 +0000

description:
Be more verbose in trap.c on what address should be passed to userland. Also
detail about what function goes into recurse

diffstat:

 sys/arch/usermode/usermode/trap.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 7a5230674f4e -r 8dc51a592537 sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Fri Sep 09 10:08:14 2011 +0000
+++ b/sys/arch/usermode/usermode/trap.c Fri Sep 09 12:21:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.37 2011/09/08 19:39:00 reinoud Exp $ */
+/* $NetBSD: trap.c,v 1.38 2011/09/09 12:21:57 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.37 2011/09/08 19:39:00 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.38 2011/09/09 12:21:57 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -118,7 +118,7 @@
 
        recurse++;
        if (recurse > 1)
-               printf("enter trap recursion level %d\n", recurse);
+               printf("%s: enter trap recursion level %d\n", __func__, recurse);
        if ((info->si_signo == SIGSEGV) || (info->si_signo == SIGBUS)) {
                l = curlwp;
                p = l->l_proc;
@@ -218,7 +218,7 @@
                                recurse--;
                                return;
                        }
-                       panic("%s: should deliver a trap to the process", __func__);
+                       panic("%s: should deliver a trap to the process for va %p", __func__, (void *) va);
                        /* XXX HOWTO see arm/arm/syscall.c illegal instruction signal */
                }
 
@@ -226,7 +226,7 @@
                pcb->pcb_errno = lwp_errno;
        }
        if (recurse > 1)
-               printf("leaving trap recursion level %d\n", recurse);
+               printf("%s: leaving trap recursion level %d\n", __func__, recurse);
        recurse--;
 }
 



Home | Main Index | Thread Index | Old Index