dma_addr_t maxaddr)
{
drm_dma_handle_t *dmah;
-#if 0
+#if 1
unsigned long addr;
size_t sz;
#endif
memset(dmah->vaddr, 0, size);
-#if 0
+#if 1
/* XXX - Is virt_to_page() legal for consistent mem? */
/* Reserve */
for (addr = (unsigned long)dmah->vaddr, sz = size;
*/
void __drm_pci_free(drm_device_t * dev, drm_dma_handle_t *dmah)
{
-#if 0
+#if 1
unsigned long addr;
size_t sz;
#endif
DRM_MEM_ERROR(area, "Attempt to free address 0\n");
#endif
} else {
-#if 0
+#if 1
/* XXX - Is virt_to_page() legal for consistent mem? */
/* Unreserve */
- for (addr = (unsigned long)dmah->vaddr, sz = size;
+ for (addr = (unsigned long)dmah->vaddr, sz = dmah->size;
sz > 0; addr += PAGE_SIZE, sz -= PAGE_SIZE) {
ClearPageReserved(virt_to_page(addr));
}