Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/arch/amd64/amd64 Pull up revision 1.19 (requested by ...



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

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

diffstat:

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

diffs (30 lines):

diff -r c358c34291f8 -r 6e6252e15a19 sys/arch/amd64/amd64/pmap.c
--- a/sys/arch/amd64/amd64/pmap.c       Mon Jun 06 12:16:19 2005 +0000
+++ b/sys/arch/amd64/amd64/pmap.c       Mon Jun 06 12:16:28 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.15 2005/01/01 21:00:06 yamt Exp $   */
+/*     $NetBSD: pmap.c,v 1.15.8.1 2005/06/06 12:16:28 tron Exp $       */
 
 /*
  *
@@ -108,7 +108,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.15 2005/01/01 21:00:06 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.15.8.1 2005/06/06 12:16:28 tron Exp $");
 
 #ifndef __x86_64__
 #include "opt_cputype.h"
@@ -3334,6 +3334,11 @@
                npte |= (PG_u | PG_RW); /* XXXCDC: no longer needed? */
        if (pmap == pmap_kernel())
                npte |= pmap_pg_g;
+       if (flags & VM_PROT_ALL) {
+               npte |= PG_U;
+               if (flags & VM_PROT_WRITE)
+                       npte |= PG_M;
+       }
 
        ptes[pl1_i(va)] = npte;         /* zap! */
 



Home | Main Index | Thread Index | Old Index