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 Cleanup trap debug messages



details:   https://anonhg.NetBSD.org/src/rev/b1ba7ba64291
branches:  trunk
changeset: 772543:b1ba7ba64291
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sat Jan 07 19:45:14 2012 +0000

description:
Cleanup trap debug messages

diffstat:

 sys/arch/usermode/usermode/trap.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r abbf6beb71d8 -r b1ba7ba64291 sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Sat Jan 07 19:44:13 2012 +0000
+++ b/sys/arch/usermode/usermode/trap.c Sat Jan 07 19:45:14 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.53 2012/01/06 20:39:42 reinoud Exp $ */
+/* $NetBSD: trap.c,v 1.54 2012/01/07 19:45:14 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.53 2012/01/06 20:39:42 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.54 2012/01/07 19:45:14 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -166,7 +166,9 @@
 #endif
 #endif
 
-//printf("memaccess error : va = %p\n", (void *) va);
+//     thunk_printf("memaccess error : pc = %p, va = %p\n",
+//             (void *) pc, (void *) va);
+
        /* copy this state to return to */
        memcpy(&pcb->pcb_trapret_ucp, uct, sizeof(ucontext_t));
 
@@ -282,7 +284,8 @@
        if (from_kernel && (va >= VM_MIN_KERNEL_ADDRESS))
                vm_map = kernel_map;
 
-       thunk_printf_debug("pagefault : pc %p, va %p\n", (void *) pc, (void *) va);
+//     thunk_printf_debug("pagefault : pc %p, va %p\n",
+//             (void *) pc, (void *) va);
 
        /* can pmap handle it? on its own? (r/m) */
        onfault = pcb->pcb_onfault;



Home | Main Index | Thread Index | Old Index