diff options
| author | Alan Cox <alc@FreeBSD.org> | 2002-08-10 18:42:13 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2002-08-10 18:42:13 +0000 |
| commit | fab965bf7ed0f5532c320499d093ef715db56466 (patch) | |
| tree | 76a06a599a96831062db27b03be2aba10611a5a1 /sys/pci | |
| parent | 38f612e0531a72240dda92f87214350fe2c7e949 (diff) | |
Notes
Diffstat (limited to 'sys/pci')
| -rw-r--r-- | sys/pci/agp.c | 5 | ||||
| -rw-r--r-- | sys/pci/agp_i810.c | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c index aa16c88ef4cb..b8e04fa3bd57 100644 --- a/sys/pci/agp.c +++ b/sys/pci/agp.c @@ -421,13 +421,10 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem, * the pages will be allocated and zeroed. */ m = vm_page_grab(mem->am_obj, OFF_TO_IDX(i), - VM_ALLOC_ZERO | VM_ALLOC_RETRY); + VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_RETRY); if ((m->flags & PG_ZERO) == 0) vm_page_zero_fill(m); AGP_DPF("found page pa=%#x\n", VM_PAGE_TO_PHYS(m)); - vm_page_lock_queues(); - vm_page_wire(m); - vm_page_unlock_queues(); /* * Install entries in the GATT, making sure that if diff --git a/sys/pci/agp_i810.c b/sys/pci/agp_i810.c index 2916be8f0798..c78cfb1ada76 100644 --- a/sys/pci/agp_i810.c +++ b/sys/pci/agp_i810.c @@ -370,11 +370,11 @@ agp_i810_alloc_memory(device_t dev, int type, vm_size_t size) * get its physical address. */ vm_page_t m; - m = vm_page_grab(mem->am_obj, 0, VM_ALLOC_ZERO|VM_ALLOC_RETRY); + m = vm_page_grab(mem->am_obj, 0, + VM_ALLOC_WIRED | VM_ALLOC_ZERO | VM_ALLOC_RETRY); if ((m->flags & PG_ZERO) == 0) vm_page_zero_fill(m); vm_page_lock_queues(); - vm_page_wire(m); mem->am_physical = VM_PAGE_TO_PHYS(m); vm_page_wakeup(m); vm_page_unlock_queues(); |
