From 84cdcd85a03610d9a3113fbbc3a89da4e4298246 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 28 Dec 2002 00:19:40 +0000 Subject: Assert that the page queues lock is held in pmap_testbit(). --- sys/amd64/amd64/pmap.c | 2 +- sys/i386/i386/pmap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 5a54365d7699..f9f102c20e9d 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -3007,7 +3007,7 @@ pmap_testbit(m, bit) return FALSE; s = splvm(); - + mtx_assert(&vm_page_queue_mtx, MA_OWNED); TAILQ_FOREACH(pv, &m->md.pv_list, pv_list) { /* * if the bit being tested is the modified bit, then diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 5a54365d7699..f9f102c20e9d 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -3007,7 +3007,7 @@ pmap_testbit(m, bit) return FALSE; s = splvm(); - + mtx_assert(&vm_page_queue_mtx, MA_OWNED); TAILQ_FOREACH(pv, &m->md.pv_list, pv_list) { /* * if the bit being tested is the modified bit, then -- cgit v1.3