Module Name: src
Committed By: reinoud
Date: Sun Jan 1 13:52:14 UTC 2012
Modified Files:
src/sys/arch/usermode/usermode: pmap.c
Log Message:
According to the pmap manpage wired pages should not track RWM, so map them RW
To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 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.85 src/sys/arch/usermode/usermode/pmap.c:1.86
--- src/sys/arch/usermode/usermode/pmap.c:1.85 Fri Dec 30 19:30:59 2011
+++ src/sys/arch/usermode/usermode/pmap.c Sun Jan 1 13:52:13 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.85 2011/12/30 19:30:59 jmcneill Exp $ */
+/* $NetBSD: pmap.c,v 1.86 2012/01/01 13:52:13 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.85 2011/12/30 19:30:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.86 2012/01/01 13:52:13 reinoud Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -686,8 +686,8 @@ pv_update(struct pv_entry *pv)
mmap_ppl = THUNK_PROT_NONE;
}
- /* unmanaged pages are special; they dont track r/m */
- if (vflags & PV_UNMANAGED)
+ /* unmanaged or wired pages are special; they dont track r/m */
+ if (vflags & (PV_UNMANAGED | PV_WIRED))
mmap_ppl = THUNK_PROT_READ | THUNK_PROT_WRITE;
pv->pv_mmap_ppl = mmap_ppl;