summaryrefslogtreecommitdiff
path: root/sys/pci
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-08-11 19:58:12 +0000
committerAlan Cox <alc@FreeBSD.org>2002-08-11 19:58:12 +0000
commitb87265eb3b8756de5c04984cb9bf2b2fc9af0b64 (patch)
treea4121f9fcb508ae6fc3bab2e726ce7d63c4f813a /sys/pci
parent8165daa6b84e0f29e00730d56c0125a2fc3473f1 (diff)
Notes
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agp.c2
-rw-r--r--sys/pci/agp_i810.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index 062785e1619b..26658fc53eba 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -421,6 +421,8 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem,
*/
m = vm_page_grab(mem->am_obj, OFF_TO_IDX(i),
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_wire(m);
diff --git a/sys/pci/agp_i810.c b/sys/pci/agp_i810.c
index 79fd56683214..14acb3f5fc37 100644
--- a/sys/pci/agp_i810.c
+++ b/sys/pci/agp_i810.c
@@ -369,6 +369,8 @@ agp_i810_alloc_memory(device_t dev, int type, vm_size_t size)
*/
vm_page_t m;
m = vm_page_grab(mem->am_obj, 0, VM_ALLOC_ZERO|VM_ALLOC_RETRY);
+ if ((m->flags & PG_ZERO) == 0)
+ vm_page_zero_fill(m);
vm_page_wire(m);
mem->am_physical = VM_PAGE_TO_PHYS(m);
vm_page_wakeup(m);