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/sun3x Pull up revision 1.87 (requested by c...



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

description:
Pull up revision 1.87 (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/sun3x/pmap.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 6e6252e15a19 -r d75e7195f920 sys/arch/sun3/sun3x/pmap.c
--- a/sys/arch/sun3/sun3x/pmap.c        Mon Jun 06 12:16:28 2005 +0000
+++ b/sys/arch/sun3/sun3x/pmap.c        Mon Jun 06 12:16:37 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.86 2005/01/22 15:36:11 chs Exp $    */
+/*     $NetBSD: pmap.c,v 1.86.6.1 2005/06/06 12:16:37 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.86 2005/01/22 15:36:11 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.86.6.1 2005/06/06 12:16:37 tron Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pmap_debug.h"
@@ -1914,6 +1914,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