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 remove more vestiges of uvm_emap_*(), to fi...



details:   https://anonhg.NetBSD.org/src/rev/246548381aeb
branches:  trunk
changeset: 322833:246548381aeb
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat May 19 16:51:32 2018 +0000

description:
remove more vestiges of uvm_emap_*(), to fix x86 kernel linking

diffstat:

 sys/arch/x86/x86/x86_tlb.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r d4f507f6bd1b -r 246548381aeb sys/arch/x86/x86/x86_tlb.c
--- a/sys/arch/x86/x86/x86_tlb.c        Sat May 19 15:18:02 2018 +0000
+++ b/sys/arch/x86/x86/x86_tlb.c        Sat May 19 16:51:32 2018 +0000
@@ -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 @@
 
        /* 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 @@
                        /* 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--) {



Home | Main Index | Thread Index | Old Index