Source-Changes-HG archive

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

[src/netbsd-2]: src/sys/arch/sun3/sun3x Pull up revision 1.87 (requested by c...



details:   https://anonhg.NetBSD.org/src/rev/f645f3f11e2e
branches:  netbsd-2
changeset: 563714:f645f3f11e2e
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jun 08 11:34:17 2005 +0000

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

diffstat:

 sys/arch/sun3/sun3x/pmap.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r a3d4d26e0690 -r f645f3f11e2e sys/arch/sun3/sun3x/pmap.c
--- a/sys/arch/sun3/sun3x/pmap.c        Wed Jun 08 11:34:04 2005 +0000
+++ b/sys/arch/sun3/sun3x/pmap.c        Wed Jun 08 11:34:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.84 2003/09/26 22:23:58 wiz Exp $    */
+/*     $NetBSD: pmap.c,v 1.84.4.1 2005/06/08 11:34:17 tron Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -112,7 +112,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.84 2003/09/26 22:23:58 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.84.4.1 2005/06/08 11:34:17 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -1939,6 +1939,16 @@
                c_pte->attr.raw |= MMU_SHORT_PTE_WP;
 
        /*
+        * Mark the PTE as used and/or modified as specified by the flags arg.
+        */
+       if (flags & VM_PROT_ALL) {
+               c_pte->attr.raw |= MMU_SHORT_PTE_USED;
+               if (flags & VM_PROT_WRITE) {
+                       c_pte->attr.raw |= MMU_SHORT_PTE_M;
+               }
+       }
+
+       /*
         * If the mapping should be cache inhibited (indicated by the flag
         * bits found on the lower order of the physical address.)
         * mark the PTE as a cache inhibited page.



Home | Main Index | Thread Index | Old Index