diff options
Diffstat (limited to 'sys/pci/agp.c')
-rw-r--r-- | sys/pci/agp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c index 1726b4b..aa16c88 100644 --- a/sys/pci/agp.c +++ b/sys/pci/agp.c @@ -422,6 +422,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_lock_queues(); vm_page_wire(m); |