summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-12-01 00:08:14 +0000
committeralc <alc@FreeBSD.org>2002-12-01 00:08:14 +0000
commit73616958280e2e63b3fd8638dd2a09a4f876aeb4 (patch)
treea922e6c44b58d13dbfa40d47384ccb7aa34ece9c /sys/i386
parente2702ec0794f99948c855086a90172b8e9e761c5 (diff)
downloadFreeBSD-src-73616958280e2e63b3fd8638dd2a09a4f876aeb4.zip
FreeBSD-src-73616958280e2e63b3fd8638dd2a09a4f876aeb4.tar.gz
Assert that the page queues lock is held in pmap_changebit()
and pmap_ts_referenced(). Approved by: re (blanket)
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 6424880..5da015a 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -3035,7 +3035,7 @@ pmap_changebit(vm_page_t m, int bit, boolean_t setem)
return;
s = splvm();
-
+ mtx_assert(&vm_page_queue_mtx, MA_OWNED);
/*
* Loop over all current mappings setting/clearing as appropos If
* setting RO do we need to clear the VAC?
@@ -3129,7 +3129,7 @@ pmap_ts_referenced(vm_page_t m)
return (rtval);
s = splvm();
-
+ mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if ((pv = TAILQ_FIRST(&m->md.pv_list)) != NULL) {
pvf = pv;
OpenPOWER on IntegriCloud