o Lock page queue accesses by vm_page_wire().

This commit is contained in:
alc 2002-07-14 23:23:47 +00:00
parent fc7d322ea5
commit de5cd2ab63

View File

@ -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);
}