Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap Rmmove an incorrect KASSERT.



details:   https://anonhg.NetBSD.org/src/rev/228a40eabd3c
branches:  trunk
changeset: 362599:228a40eabd3c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Mar 04 08:11:48 2022 +0000

description:
Rmmove an incorrect KASSERT.

diffstat:

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

diffs (36 lines):

diff -r fe93a63822b6 -r 228a40eabd3c sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c   Thu Mar 03 21:03:14 2022 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c   Fri Mar 04 08:11:48 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.c,v 1.51 2022/01/02 16:03:30 christos Exp $   */
+/*     $NetBSD: pmap_tlb.c,v 1.52 2022/03/04 08:11:48 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.51 2022/01/02 16:03:30 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.52 2022/03/04 08:11:48 skrll Exp $");
 
 /*
  * Manages address spaces in a TLB.
@@ -547,9 +547,6 @@
 {
        struct cpu_info * const ci = curcpu();
        struct pmap_tlb_info * const ti = cpu_tlb_info(ci);
-#ifdef DIAGNOSTIC
-       struct pmap * const pm = curlwp->l_proc->p_vmspace->vm_map.pmap;
-#endif
 
        KASSERT(cpu_intr_p());
        KASSERTMSG(ci->ci_cpl >= IPL_SCHED, "%s: cpl (%d) < IPL_SCHED (%d)",
@@ -580,7 +577,6 @@
                         * next called for this pmap, it will allocate a new
                         * ASID.
                         */
-                       KASSERT(!pmap_tlb_intersecting_onproc_p(pm, ti));
                        pmap_tlb_pai_reset(ti, pai, PAI_PMAP(pai, ti));
                }
                break;



Home | Main Index | Thread Index | Old Index