Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/arch/sun2/sun2 Pull up revision 1.27 (requested by ch...



details:   https://anonhg.NetBSD.org/src/rev/2828c5dcba3d
branches:  netbsd-3
changeset: 576005:2828c5dcba3d
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 06 12:17:03 2005 +0000

description:
Pull up revision 1.27 (requested by chs in ticket #424):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.

diffstat:

 sys/arch/sun2/sun2/pmap.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 8e9cfd480a66 -r 2828c5dcba3d sys/arch/sun2/sun2/pmap.c
--- a/sys/arch/sun2/sun2/pmap.c Mon Jun 06 12:16:55 2005 +0000
+++ b/sys/arch/sun2/sun2/pmap.c Mon Jun 06 12:17:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.25 2005/01/22 15:36:09 chs Exp $    */
+/*     $NetBSD: pmap.c,v 1.25.6.1 2005/06/06 12:17:03 tron Exp $       */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -89,7 +89,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.25 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.25.6.1 2005/06/06 12:17:03 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -1968,6 +1968,12 @@
        new_pte |= PG_VALID;
        if (prot & VM_PROT_WRITE)
                new_pte |= PG_WRITE;
+       if (flags & VM_PROT_ALL) {
+               new_pte |= PG_REF;
+               if (flags & VM_PROT_WRITE) {
+                       new_pte |= PG_MOD;
+               }
+       }
 
        /* ...and finally the page-frame number. */
        new_pte |= PA_PGNUM(pa);



Home | Main Index | Thread Index | Old Index