Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap Provide a TLBINFO_OWNED



details:   https://anonhg.NetBSD.org/src/rev/bf8cf9ed2cb0
branches:  trunk
changeset: 936641:bf8cf9ed2cb0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Aug 01 07:14:05 2020 +0000

description:
Provide a TLBINFO_OWNED

diffstat:

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

diffs (17 lines):

diff -r f1d09d160cd4 -r bf8cf9ed2cb0 sys/uvm/pmap/pmap_tlb.h
--- a/sys/uvm/pmap/pmap_tlb.h   Sat Aug 01 07:14:04 2020 +0000
+++ b/sys/uvm/pmap/pmap_tlb.h   Sat Aug 01 07:14:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.h,v 1.13 2018/02/19 22:01:15 jdolecek Exp $   */
+/*     $NetBSD: pmap_tlb.h,v 1.14 2020/08/01 07:14:05 skrll Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -96,6 +96,7 @@
 
 #define        TLBINFO_LOCK(ti)                mutex_spin_enter((ti)->ti_lock)
 #define        TLBINFO_UNLOCK(ti)              mutex_spin_exit((ti)->ti_lock)
+#define        TLBINFO_OWNED(ti)               mutex_owned((ti)->ti_lock)
 #define        PMAP_PAI_ASIDVALID_P(pai, ti)   ((pai)->pai_asid != 0)
 #define        PMAP_PAI(pmap, ti)              (&(pmap)->pm_pai[tlbinfo_index(ti)])
 #define        PAI_PMAP(pai, ti)       \



Home | Main Index | Thread Index | Old Index