Module Name: src
Committed By: reinoud
Date: Thu Sep 15 14:55:23 UTC 2011
Modified Files:
src/sys/arch/usermode/usermode: pmap.c
Log Message:
On entering an entry to pmap, activate the entry directly if adding to an
already active pmap.
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/arch/usermode/usermode/pmap.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/pmap.c
diff -u src/sys/arch/usermode/usermode/pmap.c:1.64 src/sys/arch/usermode/usermode/pmap.c:1.65
--- src/sys/arch/usermode/usermode/pmap.c:1.64 Thu Sep 15 14:45:22 2011
+++ src/sys/arch/usermode/usermode/pmap.c Thu Sep 15 14:55:23 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.64 2011/09/15 14:45:22 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.65 2011/09/15 14:55:23 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.64 2011/09/15 14:45:22 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.65 2011/09/15 14:55:23 reinoud Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -724,7 +724,7 @@
pv->pv_lpn = lpn;
pv->pv_prot = prot;
pv->pv_vflags = 0;
- pv->pv_next = NULL;
+ /* pv->pv_next = NULL; */ /* might confuse linked list? */
if (flags & PMAP_WIRED)
pv->pv_vflags |= PV_WIRED;
@@ -748,6 +748,10 @@
splx(s);
+ /* activate page directly when on active pmap */
+ if (pmap->pm_flags & PM_ACTIVE)
+ pmap_page_activate(pv);
+
return 0;
}