From b85a2011c1d7a0f84b2df729e61c76e5b116c500 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 12 Feb 2005 03:48:54 +0000 Subject: [PATCH] Add lock assertion. Tested by: jhb --- sys/sparc64/sparc64/tsb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sparc64/sparc64/tsb.c b/sys/sparc64/sparc64/tsb.c index b3f794b8d58e..8e99633d6f12 100644 --- a/sys/sparc64/sparc64/tsb.c +++ b/sys/sparc64/sparc64/tsb.c @@ -93,6 +93,7 @@ tsb_tte_lookup(pmap_t pm, vm_offset_t va) if (tte_match(tp, va)) return (tp); } else { + PMAP_LOCK_ASSERT(pm, MA_OWNED); PMAP_STATS_INC(tsb_nlookup_u); for (sz = TS_MIN; sz <= TS_MAX; sz++) { bucket = tsb_vtobucket(pm, sz, va);