we return addresses, not page numbers in *mmap() methods

This commit is contained in:
macallan 2007-03-21 02:11:44 +00:00
parent 271d77fa58
commit ea7f3505eb

View File

@ -73,7 +73,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot)
DRM_SPINUNLOCK(&dev->dma_lock);
return 0;
#else
return atop(pphys);
return pphys;
#endif
} else {
DRM_SPINUNLOCK(&dev->dma_lock);
@ -134,7 +134,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot)
*paddr = phys;
return 0;
#else
return atop(phys);
return phys;
#endif
}