Hold the page queues lock around calls to pmap_remove().

Approved by:	re
This commit is contained in:
Alan Cox 2002-12-04 18:40:39 +00:00
parent 91f6016a96
commit a597332c22
2 changed files with 4 additions and 0 deletions

View File

@ -277,7 +277,9 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
}
out:
vm_page_lock_queues();
pmap_remove(pm, sc->acpi_wakephys, sc->acpi_wakephys + PAGE_SIZE);
vm_page_unlock_queues();
if (opage) {
pmap_enter(pm, sc->acpi_wakephys, page,
VM_PROT_READ | VM_PROT_WRITE, 0);

View File

@ -277,7 +277,9 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
}
out:
vm_page_lock_queues();
pmap_remove(pm, sc->acpi_wakephys, sc->acpi_wakephys + PAGE_SIZE);
vm_page_unlock_queues();
if (opage) {
pmap_enter(pm, sc->acpi_wakephys, page,
VM_PROT_READ | VM_PROT_WRITE, 0);