Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 only use PG_G on leaf PTEs.



details:   https://anonhg.NetBSD.org/src/rev/7d31a5b54cfe
branches:  trunk
changeset: 771940:7d31a5b54cfe
user:      chs <chs%NetBSD.org@localhost>
date:      Fri Dec 09 17:32:51 2011 +0000

description:
only use PG_G on leaf PTEs.
go back to tlbflush(), all the global entries
that we create in pmap_bootstrap() are permanent.

diffstat:

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

diffs (34 lines):

diff -r 1b36d65ebe89 -r 7d31a5b54cfe sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Fri Dec 09 17:24:25 2011 +0000
+++ b/sys/arch/x86/x86/pmap.c   Fri Dec 09 17:32:51 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.146 2011/12/08 22:36:42 rmind Exp $ */
+/*     $NetBSD: pmap.c,v 1.147 2011/12/09 17:32:51 chs Exp $   */
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.146 2011/12/08 22:36:42 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.147 2011/12/09 17:32:51 chs Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -1365,13 +1365,13 @@
 
                        pde = (pd_entry_t *)(tmpva + (pdp & ~PG_FRAME));
                        *pde = (dmpd + (i << PAGE_SHIFT)) |
-                               PG_RW | PG_V | PG_U | PG_G;
+                               PG_RW | PG_V | PG_U;
                }
        }
 
        kpm->pm_pdir[PDIR_SLOT_DIRECT] = dmpdp | PG_KW | PG_V | PG_U;
 
-       tlbflushg();
+       tlbflush();
 
 #else
        if (VM_MIN_KERNEL_ADDRESS != KERNBASE) {



Home | Main Index | Thread Index | Old Index