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 Remove temporary the optimalizati...
details: https://anonhg.NetBSD.org/src/rev/c5034416e335
branches: trunk
changeset: 769597:c5034416e335
user: reinoud <reinoud%NetBSD.org@localhost>
date: Thu Sep 15 15:02:35 2011 +0000
description:
Remove temporary the optimalization code of pmap_remove_all() until the
suspected pmap problems are fixed/found.
diffstat:
sys/arch/usermode/usermode/pmap.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r eadd28f2e210 -r c5034416e335 sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Thu Sep 15 14:55:23 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Thu Sep 15 15:02:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.65 2011/09/15 14:55:23 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.66 2011/09/15 15:02:35 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.65 2011/09/15 14:55:23 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.66 2011/09/15 15:02:35 reinoud Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -789,7 +789,7 @@
}
} else {
for (npv = pv->pv_next; npv; npv = npv->pv_next) {
- if (pmap == npv->pv_pmap && lpn == npv->pv_lpn)
+ if ((pmap == npv->pv_pmap) && (lpn == npv->pv_lpn))
break;
pv = npv;
}
@@ -842,8 +842,11 @@
if (pmap == pmap_kernel())
return;
+#if 0
+ /* remove all mappings in one-go; not needed */
pmap_remove(pmap, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS);
thunk_munmap((void *) VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS - VM_MIN_ADDRESS);
+#endif
#if 0
/* remove all cached info from the pages */
thunk_msync(VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS - VM_MIN_ADDRESS,
Home |
Main Index |
Thread Index |
Old Index