diff options
author | alc <alc@FreeBSD.org> | 2002-12-01 00:08:14 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-12-01 00:08:14 +0000 |
commit | 73616958280e2e63b3fd8638dd2a09a4f876aeb4 (patch) | |
tree | a922e6c44b58d13dbfa40d47384ccb7aa34ece9c /sys | |
parent | e2702ec0794f99948c855086a90172b8e9e761c5 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 6424880..5da015a 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/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; 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; |