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



details:   https://anonhg.NetBSD.org/src/rev/97307eafb74a
branches:  netbsd-2-0
changeset: 564785:97307eafb74a
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jun 08 11:32:08 2005 +0000

description:
Pull up revision 1.19 (requested by chs in ticket #1980):
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 4e97c027db17 -r 97307eafb74a sys/arch/amd64/amd64/pmap.c
--- a/sys/arch/amd64/amd64/pmap.c       Wed Jun 08 11:31:58 2005 +0000
+++ b/sys/arch/amd64/amd64/pmap.c       Wed Jun 08 11:32:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.9.2.1 2004/06/01 04:34:52 jmc Exp $ */
+/*     $NetBSD: pmap.c,v 1.9.2.2 2005/06/08 11:32:08 tron Exp $        */
 
 /*
  *
@@ -108,7 +108,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.9.2.1 2004/06/01 04:34:52 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.9.2.2 2005/06/08 11:32:08 tron Exp $");
 
 #ifndef __x86_64__
 #include "opt_cputype.h"
@@ -3309,6 +3309,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