summaryrefslogtreecommitdiff
path: root/src/revenge_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revenge_memory.c')
-rw-r--r--src/revenge_memory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/revenge_memory.c b/src/revenge_memory.c
index 60a627a..5d66f8f 100644
--- a/src/revenge_memory.c
+++ b/src/revenge_memory.c
@@ -71,13 +71,11 @@ memory_gart_to_phys (unsigned int addr)
if (option_debug && option_verbose)
{
- printf ("%s: addr = 0x%08x phys_addr = 0x%08x (0x%08x)\n", __func__,
+ printf ("%s: addr = 0x%08x phys_addr = 0x%08x (%d)\n", __func__,
addr, phys_addr, num);
}
- assert ((phys_addr % ATI_PCIGART_PAGE_SIZE) == 0);
-
- return phys_addr;
+ return round_down (phys_addr, ATI_PCIGART_PAGE_SIZE);
}
static void *