diff options
-rw-r--r-- | sys/dev/agp/agp.c | 4 | ||||
-rw-r--r-- | sys/pci/agp.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index 0a073ea..2281334 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -443,7 +443,9 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem, * Bail out. Reverse all the mappings * and unwire the pages. */ + vm_page_lock_queues(); vm_page_wakeup(m); + vm_page_unlock_queues(); for (k = 0; k < i + j; k += AGP_PAGE_SIZE) AGP_UNBIND_PAGE(dev, offset + k); for (k = 0; k <= i; k += PAGE_SIZE) { @@ -457,7 +459,9 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem, return error; } } + vm_page_lock_queues(); vm_page_wakeup(m); + vm_page_unlock_queues(); } /* diff --git a/sys/pci/agp.c b/sys/pci/agp.c index 0a073ea..2281334 100644 --- a/sys/pci/agp.c +++ b/sys/pci/agp.c @@ -443,7 +443,9 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem, * Bail out. Reverse all the mappings * and unwire the pages. */ + vm_page_lock_queues(); vm_page_wakeup(m); + vm_page_unlock_queues(); for (k = 0; k < i + j; k += AGP_PAGE_SIZE) AGP_UNBIND_PAGE(dev, offset + k); for (k = 0; k <= i; k += PAGE_SIZE) { @@ -457,7 +459,9 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem, return error; } } + vm_page_lock_queues(); vm_page_wakeup(m); + vm_page_unlock_queues(); } /* |