From c39e23c83dff48d4ea81f5e9e4869c4beb646ab9 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 8 Aug 2003 00:30:26 +0000 Subject: [PATCH] MFi386 1.422 & 1.423: lock page queues in pmap_insert_entry(). --- sys/ia64/ia64/pmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index f22e4ffafed9..f3485437e153 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -1068,9 +1068,11 @@ pmap_insert_entry(pmap_t pmap, vm_offset_t va, vm_page_t m) pv->pv_pmap = pmap; pv->pv_va = va; + vm_page_lock_queues(); TAILQ_INSERT_TAIL(&pmap->pm_pvlist, pv, pv_plist); TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_list); m->md.pv_list_count++; + vm_page_unlock_queues(); } /*