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/pc532/pc532 Pull up revision 1.77 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/f6ad8b63caae
branches:  netbsd-2-0
changeset: 564791:f6ad8b63caae
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jun 08 11:33:10 2005 +0000

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

diffstat:

 sys/arch/pc532/pc532/pmap.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 4c86c5ea776a -r f6ad8b63caae sys/arch/pc532/pc532/pmap.c
--- a/sys/arch/pc532/pc532/pmap.c       Wed Jun 08 11:33:01 2005 +0000
+++ b/sys/arch/pc532/pc532/pmap.c       Wed Jun 08 11:33:10 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.74 2003/07/15 02:54:35 lukem Exp $  */
+/*     $NetBSD: pmap.c,v 1.74.2.1 2005/06/08 11:33:10 tron Exp $       */
 
 /*
  *
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.74 2003/07/15 02:54:35 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.74.2.1 2005/06/08 11:33:10 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2673,6 +2673,11 @@
                npte |= PG_u;
        else if (va < VM_MAX_ADDRESS)
                npte |= (PG_u | PG_RW); /* XXXCDC: no longer needed? */
+       if (flags & VM_PROT_ALL) {
+               npte |= PG_U;
+               if (flags & VM_PROT_WRITE)
+                       npte |= PG_M;
+       }
 
        ptes[ns532_btop(va)] = npte;            /* zap! */
 



Home | Main Index | Thread Index | Old Index