Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/arch/i386/i386 Pull up revision 1.181 (requested by...
details: https://anonhg.NetBSD.org/src/rev/5a5d665ae5df
branches: netbsd-2-0
changeset: 564783:5a5d665ae5df
user: tron <tron%NetBSD.org@localhost>
date: Wed Jun 08 11:29:40 2005 +0000
description:
Pull up revision 1.181 (requested by chs in ticket #1979):
Preload the referenced and modified bits when entering a page due to a fault.
diffstat:
sys/arch/i386/i386/pmap.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r ff914bb61c0b -r 5a5d665ae5df sys/arch/i386/i386/pmap.c
--- a/sys/arch/i386/i386/pmap.c Tue May 31 21:55:33 2005 +0000
+++ b/sys/arch/i386/i386/pmap.c Wed Jun 08 11:29:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.171.2.1 2004/04/16 07:58:45 tron Exp $ */
+/* $NetBSD: pmap.c,v 1.171.2.2 2005/06/08 11:29:40 tron Exp $ */
/*
*
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.171.2.1 2004/04/16 07:58:45 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.171.2.2 2005/06/08 11:29:40 tron Exp $");
#include "opt_cputype.h"
#include "opt_user_ldt.h"
@@ -3280,6 +3280,13 @@
npte |= (PG_u | PG_RW); /* XXXCDC: no longer needed? */
if (pmap == pmap_kernel())
npte |= pmap_pg_g;
+#if 1
+ if (flags & VM_PROT_ALL) {
+ npte |= PG_U;
+ if (flags & VM_PROT_WRITE)
+ npte |= PG_M;
+ }
+#endif
/* get lock */
PMAP_MAP_TO_HEAD_LOCK();
Home |
Main Index |
Thread Index |
Old Index