Pass correct offset to xgi_find_pcie_virt.

The wrong offset was being passed to xgi_find_pcie_virt.  This would
cause an oops in addFlush2D.
main
Ian Romanick 2007-07-24 15:53:50 -07:00
parent 8e64d2ae86
commit 75a68635a8
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ int xgi_cmdlist_initialize(struct xgi_info * info, size_t size)
return err;
}
info->cmdring.ptr = xgi_find_pcie_virt(info, mem_alloc.offset);
info->cmdring.ptr = xgi_find_pcie_virt(info, mem_alloc.hw_offset);
info->cmdring.size = mem_alloc.size;
info->cmdring.ring_hw_base = mem_alloc.hw_addr;
info->cmdring.ring_gart_base = mem_alloc.offset;