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 Duh... fix stupid debug print bug.
details: https://anonhg.NetBSD.org/src/rev/95873cb649fc
branches: trunk
changeset: 768670:95873cb649fc
user: reinoud <reinoud%NetBSD.org@localhost>
date: Wed Aug 24 11:50:28 2011 +0000
description:
Duh... fix stupid debug print bug.
diffstat:
sys/arch/usermode/usermode/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 3f6e445182b4 -r 95873cb649fc sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Wed Aug 24 11:41:00 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Wed Aug 24 11:50:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.28 2011/08/24 11:41:00 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.29 2011/08/24 11:50:28 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.28 2011/08/24 11:41:00 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.29 2011/08/24 11:50:28 reinoud Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -417,11 +417,11 @@
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