Module Name: src
Committed By: jakllsch
Date: Sat May 19 16:51:32 UTC 2018
Modified Files:
src/sys/arch/x86/x86: x86_tlb.c
Log Message:
remove more vestiges of uvm_emap_*(), to fix x86 kernel linking
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/x86_tlb.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/x86_tlb.c
diff -u src/sys/arch/x86/x86/x86_tlb.c:1.1 src/sys/arch/x86/x86/x86_tlb.c:1.2
--- src/sys/arch/x86/x86/x86_tlb.c:1.1 Mon Jan 22 19:37:45 2018
+++ src/sys/arch/x86/x86/x86_tlb.c Sat May 19 16:51:32 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_tlb.c,v 1.1 2018/01/22 19:37:45 jdolecek Exp $ */
+/* $NetBSD: x86_tlb.c,v 1.2 2018/05/19 16:51:32 jakllsch Exp $ */
/*-
* Copyright (c) 2008-2012 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.1 2018/01/22 19:37:45 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.2 2018/05/19 16:51:32 jakllsch Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -199,7 +199,6 @@ pmap_tlb_invalidate(const pmap_tlb_packe
/* Find out what we need to invalidate. */
if (tp->tp_count == (uint16_t)-1) {
- u_int egen = uvm_emap_gen_return();
if (tp->tp_pte & PG_G) {
/* Invalidating user and kernel TLB entries. */
tlbflushg();
@@ -207,7 +206,6 @@ pmap_tlb_invalidate(const pmap_tlb_packe
/* Invalidating user TLB entries only. */
tlbflush();
}
- uvm_emap_update(egen);
} else {
/* Invalidating a single page or a range of pages. */
for (i = tp->tp_count - 1; i >= 0; i--) {