Module Name: src
Committed By: chs
Date: Fri Dec 9 17:32:51 UTC 2011
Modified Files:
src/sys/arch/x86/x86: pmap.c
Log Message:
only use PG_G on leaf PTEs.
go back to tlbflush(), all the global entries
that we create in pmap_bootstrap() are permanent.
To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/arch/x86/x86/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/pmap.c
diff -u src/sys/arch/x86/x86/pmap.c:1.146 src/sys/arch/x86/x86/pmap.c:1.147
--- src/sys/arch/x86/x86/pmap.c:1.146 Thu Dec 8 22:36:42 2011
+++ src/sys/arch/x86/x86/pmap.c Fri Dec 9 17:32:51 2011
@@ -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 @@ pmap_bootstrap(vaddr_t kva_start)
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) {