summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-01-20 08:14:35 +0000
committeralc <alc@FreeBSD.org>2003-01-20 08:14:35 +0000
commit3d94105a2503d1efd45d8a06f53a0efa630af67e (patch)
tree97033cbf846c9288ac07cd7a51578983146d0106 /sys/alpha
parent3d76eee5a28c413321a315a09fd31998734093b2 (diff)
downloadFreeBSD-src-3d94105a2503d1efd45d8a06f53a0efa630af67e.zip
FreeBSD-src-3d94105a2503d1efd45d8a06f53a0efa630af67e.tar.gz
Move the vm_page_busy() in pmap_dispose_thread() to a place where it is
covered by the page queues lock. (This actually makes alpha's pmap_dispose_thread() look more like the i386's.)
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c
index 58ceb04..1a9082f 100644
--- a/sys/alpha/alpha/pmap.c
+++ b/sys/alpha/alpha/pmap.c
@@ -1042,10 +1042,10 @@ pmap_dispose_thread(td)
m = vm_page_lookup(ksobj, i);
if (m == NULL)
panic("pmap_dispose_thread: kstack already missing?");
- vm_page_busy(m);
ptek[i] = 0;
pmap_invalidate_page(kernel_pmap, ks + i * PAGE_SIZE);
vm_page_lock_queues();
+ vm_page_busy(m);
vm_page_unwire(m, 0);
vm_page_free(m);
vm_page_unlock_queues();
OpenPOWER on IntegriCloud