Module Name:    src
Committed By:   reinoud
Date:           Fri Sep  9 12:21:57 UTC 2011

Modified Files:
        src/sys/arch/usermode/usermode: trap.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/usermode/usermode/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/usermode/trap.c
diff -u src/sys/arch/usermode/usermode/trap.c:1.37 src/sys/arch/usermode/usermode/trap.c:1.38
--- src/sys/arch/usermode/usermode/trap.c:1.37	Thu Sep  8 19:39:00 2011
+++ src/sys/arch/usermode/usermode/trap.c	Fri Sep  9 12:21:57 2011
@@ -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 <[email protected]>
@@ -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--;
 }
 

Reply via email to