Module Name: src
Committed By: rmind
Date: Thu Dec 8 22:36:42 UTC 2011
Modified Files:
src/sys/arch/x86/x86: pmap.c
Log Message:
pmap_bootstrap: use tlbflushg(), not tlbflush(), since we use global pages.
To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 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.145 src/sys/arch/x86/x86/pmap.c:1.146
--- src/sys/arch/x86/x86/pmap.c:1.145 Thu Dec 8 15:35:34 2011
+++ src/sys/arch/x86/x86/pmap.c Thu Dec 8 22:36:42 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.145 2011/12/08 15:35:34 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.146 2011/12/08 22:36:42 rmind 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.145 2011/12/08 15:35:34 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.146 2011/12/08 22:36:42 rmind Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -1328,7 +1328,7 @@ pmap_bootstrap(vaddr_t kva_start)
pte = PTE_BASE + pl1_i(tmpva);
/*
- * Map the direct map. Use 1GB pages if they are available,
+ * Map the direct map. Use 1GB pages if they are available,
* otherwise use 2MB pages.
*/
@@ -1371,7 +1371,7 @@ pmap_bootstrap(vaddr_t kva_start)
kpm->pm_pdir[PDIR_SLOT_DIRECT] = dmpdp | PG_KW | PG_V | PG_U;
- tlbflush();
+ tlbflushg();
#else
if (VM_MIN_KERNEL_ADDRESS != KERNBASE) {