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 Unmap tmpva once we are done using it, not ...



details:   https://anonhg.NetBSD.org/src/rev/892e2f427778
branches:  trunk
changeset: 819098:892e2f427778
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Nov 17 16:32:06 2016 +0000

description:
Unmap tmpva once we are done using it, not to pollute the page tree.

diffstat:

 sys/arch/x86/x86/pmap.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r b6d43cb311ae -r 892e2f427778 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Thu Nov 17 16:26:07 2016 +0000
+++ b/sys/arch/x86/x86/pmap.c   Thu Nov 17 16:32:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.226 2016/11/17 16:26:07 maxv Exp $  */
+/*     $NetBSD: pmap.c,v 1.227 2016/11/17 16:32:06 maxv Exp $  */
 
 /*-
  * Copyright (c) 2008, 2010, 2016 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.226 2016/11/17 16:26:07 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.227 2016/11/17 16:32:06 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -1558,6 +1558,9 @@
 
        kpm->pm_pdir[PDIR_SLOT_DIRECT] = dm_pdp | pteflags | PG_U;
 
+       *pte = 0;
+       pmap_update_pg(tmpva);
+
        tlbflush();
 }
 #endif /* __HAVE_DIRECT_MAP */



Home | Main Index | Thread Index | Old Index