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 comments and debug stuff



details:   https://anonhg.NetBSD.org/src/rev/3f6e445182b4
branches:  trunk
changeset: 768669:3f6e445182b4
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Aug 24 11:41:00 2011 +0000

description:
Cleanup comments and debug stuff

diffstat:

 sys/arch/usermode/usermode/pmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r ec40e9914a67 -r 3f6e445182b4 sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Wed Aug 24 11:30:59 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Wed Aug 24 11:41:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.27 2011/08/24 11:30:59 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.28 2011/08/24 11:41:00 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <reinoud%NetBSD.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.27 2011/08/24 11:30:59 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.28 2011/08/24 11:41:00 reinoud Exp $");
 
 #include "opt_memsize.h"
 #include "opt_kmempages.h"
@@ -415,13 +415,13 @@
 {
        paddr_t pa = pv->pv_ppn * PAGE_SIZE;
        vaddr_t va = pv->pv_lpn * PAGE_SIZE + VM_MIN_ADDRESS; /* V->A */
-
        void *addr;
 
+       aprint_debug("page_activate: (va %p, pa %p, ppl %d) -> %p\n",
+               (void *) va, (void *) pa, pv->pv_mmap_ppl, (void *) addr);
        addr = thunk_mmap((void *) va, PAGE_SIZE, pv->pv_mmap_ppl,
                MAP_FILE | MAP_FIXED,
                mem_fh, pa);
-aprint_debug("page_activate: (va %p, pa %p, ppl %d) -> %p\n", (void *) va, (void *) pa, pv->pv_mmap_ppl, (void *) addr);
        if (addr != (void *) va)
                panic("pmap_page_activate: mmap failed");
 }



Home | Main Index | Thread Index | Old Index