Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap Compare ASIDs, not pmaps.



details:   https://anonhg.NetBSD.org/src/rev/f38e76cae09a
branches:  trunk
changeset: 328426:f38e76cae09a
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 03 14:23:38 2014 +0000

description:
Compare ASIDs, not pmaps.

diffstat:

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

diffs (27 lines):

diff -r 6ca734b7674d -r f38e76cae09a sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c   Thu Apr 03 14:15:05 2014 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c   Thu Apr 03 14:23:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.c,v 1.6 2014/04/03 13:54:59 matt Exp $        */
+/*     $NetBSD: pmap_tlb.c,v 1.7 2014/04/03 14:23:38 matt 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.6 2014/04/03 13:54:59 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.7 2014/04/03 14:23:38 matt Exp $");
 
 /*
  * Manages address spaces in a TLB.
@@ -993,7 +993,7 @@
        struct pmap_asid_info * const pai = PMAP_PAI(pm, ti);
        TLBINFO_LOCK(ti);
        if (pai->pai_asid > KERNEL_PID) {
-               if (curcpu()->ci_pmap_cur == pm) {
+               if (curcpu()->ci_pmap_asid_cur == pai->pai_asid) {
                        tlb_invalidate_asids(pai->pai_asid, pai->pai_asid);
                } else {
                        pmap_pai_reset(ti, pai, pm);



Home | Main Index | Thread Index | Old Index