Module Name: src
Committed By: maxv
Date: Thu Nov 17 16:32:06 UTC 2016
Modified Files:
src/sys/arch/x86/x86: pmap.c
Log Message:
Unmap tmpva once we are done using it, not to pollute the page tree.
To generate a diff of this commit:
cvs rdiff -u -r1.226 -r1.227 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.226 src/sys/arch/x86/x86/pmap.c:1.227
--- src/sys/arch/x86/x86/pmap.c:1.226 Thu Nov 17 16:26:07 2016
+++ src/sys/arch/x86/x86/pmap.c Thu Nov 17 16:32:06 2016
@@ -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 @@ pmap_init_directmap(struct pmap *kpm)
kpm->pm_pdir[PDIR_SLOT_DIRECT] = dm_pdp | pteflags | PG_U;
+ *pte = 0;
+ pmap_update_pg(tmpva);
+
tlbflush();
}
#endif /* __HAVE_DIRECT_MAP */