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



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

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

diffstat:

 sys/arch/atari/atari/pmap.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r f6ad8b63caae -r 61af969c089b sys/arch/atari/atari/pmap.c
--- a/sys/arch/atari/atari/pmap.c       Wed Jun 08 11:33:10 2005 +0000
+++ b/sys/arch/atari/atari/pmap.c       Wed Jun 08 11:33:19 2005 +0000
@@ -106,7 +106,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.86 2003/09/27 20:01:58 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.86.2.1 2005/06/08 11:33:19 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1291,6 +1291,12 @@
                 (kernel_copyback || pmap != pmap_kernel()))
                npte |= PG_CCB;         /* cache copyback */
 #endif
+       if (flags & VM_PROT_ALL) {
+               npte |= PG_U;
+               if (flags & VM_PROT_WRITE)
+                       npte |= PG_M;
+       }
+
        /*
         * Remember if this was a wiring-only change.
         * If so, we need not flush the TLB and caches.



Home | Main Index | Thread Index | Old Index