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 pmap_bootstrap: use tlbflushg(), not tlbflu...
details: https://anonhg.NetBSD.org/src/rev/1c2aa1f7844c
branches: trunk
changeset: 771919:1c2aa1f7844c
user: rmind <rmind%NetBSD.org@localhost>
date: Thu Dec 08 22:36:42 2011 +0000
description:
pmap_bootstrap: use tlbflushg(), not tlbflush(), since we use global pages.
diffstat:
sys/arch/x86/x86/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d5cf046c2b9f -r 1c2aa1f7844c sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Thu Dec 08 22:27:36 2011 +0000
+++ b/sys/arch/x86/x86/pmap.c Thu Dec 08 22:36:42 2011 +0000
@@ -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 @@
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 @@
kpm->pm_pdir[PDIR_SLOT_DIRECT] = dmpdp | PG_KW | PG_V | PG_U;
- tlbflush();
+ tlbflushg();
#else
if (VM_MIN_KERNEL_ADDRESS != KERNBASE) {
Home |
Main Index |
Thread Index |
Old Index