summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-14 23:23:47 +0000
committeralc <alc@FreeBSD.org>2002-07-14 23:23:47 +0000
commit52c89de0219a6f079e2f2cd84619183a081c89cc (patch)
treea9468f54bd30c31672099f5320c0443f92281e77 /sys
parent9d11d52e912b7a3148e89829fdaa0bf5ae30f7c7 (diff)
downloadFreeBSD-src-52c89de0219a6f079e2f2cd84619183a081c89cc.zip
FreeBSD-src-52c89de0219a6f079e2f2cd84619183a081c89cc.tar.gz
o Lock page queue accesses by vm_page_wire().
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/sparc64/pmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c
index 2d6352c..bede76d 100644
--- a/sys/sparc64/sparc64/pmap.c
+++ b/sys/sparc64/sparc64/pmap.c
@@ -949,9 +949,11 @@ pmap_swapin_thread(struct thread *td)
m->valid = VM_PAGE_BITS_ALL;
}
ma[i] = m;
+ vm_page_lock_queues();
vm_page_wire(m);
vm_page_wakeup(m);
vm_page_flag_set(m, PG_MAPPED | PG_WRITEABLE);
+ vm_page_unlock_queues();
}
pmap_qenter(ks, ma, KSTACK_PAGES);
}
OpenPOWER on IntegriCloud