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/sun2/sun2 Pull up revision 1.27 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/5bd0658ef4eb
branches:  netbsd-2-0
changeset: 564789:5bd0658ef4eb
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jun 08 11:32:47 2005 +0000

description:
Pull up revision 1.27 (requested by chs in ticket #1980):
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 ed06fa6c31cc -r 5bd0658ef4eb sys/arch/sun2/sun2/pmap.c
--- a/sys/arch/sun2/sun2/pmap.c Wed Jun 08 11:32:38 2005 +0000
+++ b/sys/arch/sun2/sun2/pmap.c Wed Jun 08 11:32:47 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.24 2003/07/15 03:36:13 lukem Exp $  */
+/*     $NetBSD: pmap.c,v 1.24.2.1 2005/06/08 11:32:47 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.24 2003/07/15 03:36:13 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24.2.1 2005/06/08 11:32:47 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -2011,6 +2011,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