Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/arch/sun3/sun3 Pull up revision 1.147 (requested by c...



details:   https://anonhg.NetBSD.org/src/rev/7c20685dfe48
branches:  netbsd-3
changeset: 576003:7c20685dfe48
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 06 12:16:46 2005 +0000

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

diffstat:

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

diffs (31 lines):

diff -r d75e7195f920 -r 7c20685dfe48 sys/arch/sun3/sun3/pmap.c
--- a/sys/arch/sun3/sun3/pmap.c Mon Jun 06 12:16:37 2005 +0000
+++ b/sys/arch/sun3/sun3/pmap.c Mon Jun 06 12:16:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.145 2005/01/22 15:36:10 chs Exp $   */
+/*     $NetBSD: pmap.c,v 1.145.6.1 2005/06/06 12:16:46 tron Exp $      */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -87,7 +87,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.145 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.145.6.1 2005/06/06 12:16:46 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -1997,6 +1997,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