From ea7f3505eb8e0ff73cf484f800cda9c78575e7fc Mon Sep 17 00:00:00 2001 From: macallan Date: Wed, 21 Mar 2007 02:11:44 +0000 Subject: [PATCH] we return addresses, not page numbers in *mmap() methods --- sys/dev/drm/drm_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index 556a196b601d..2de97b41d08b 100644 --- a/sys/dev/drm/drm_vm.c +++ b/sys/dev/drm/drm_vm.c @@ -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 }