Hold the page queues lock around calls to pmap_remove().
Approved by: re
This commit is contained in:
parent
91f6016a96
commit
a597332c22
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user