Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm/pmap Fix inverted logic test in pmap_tlb_shootdown_p...



details:   https://anonhg.NetBSD.org/src/rev/f08b59a614de
branches:  trunk
changeset: 974981:f08b59a614de
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Aug 19 06:07:03 2020 +0000

description:
Fix inverted logic test in pmap_tlb_shootdown_process for if the victim
is onproc.

diffstat:

 sys/uvm/pmap/pmap_tlb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e96fb9f08ba -r f08b59a614de sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c   Wed Aug 19 05:51:18 2020 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c   Wed Aug 19 06:07:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.c,v 1.36 2020/08/11 06:54:14 skrll Exp $      */
+/*     $NetBSD: pmap_tlb.c,v 1.37 2020/08/19 06:07:03 skrll Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.36 2020/08/11 06:54:14 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.37 2020/08/19 06:07:03 skrll Exp $");
 
 /*
  * Manages address spaces in a TLB.
@@ -564,7 +564,7 @@
                 */
                struct pmap_asid_info * const pai = PMAP_PAI(ti->ti_victim, ti);
                KASSERT(ti->ti_victim != pmap_kernel());
-               if (!pmap_tlb_intersecting_onproc_p(ti->ti_victim, ti)) {
+               if (pmap_tlb_intersecting_onproc_p(ti->ti_victim, ti)) {
                        /*
                         * The victim is an active pmap so we will just
                         * invalidate its TLB entries.



Home | Main Index | Thread Index | Old Index