diff options
| author | macallan <macallan@NetBSD.org> | 2007-03-21 02:11:44 +0000 |
|---|---|---|
| committer | macallan <macallan@NetBSD.org> | 2007-03-21 02:11:44 +0000 |
| commit | ea7f3505eb8e0ff73cf484f800cda9c78575e7fc (patch) | |
| tree | 56d0bbbdaa698858ace3e483aacf86b06752f7fd /sys/dev/drm | |
| parent | 271d77fa58a10baf0f6c04f9adc6e0d02dace17a (diff) | |
we return addresses, not page numbers in *mmap() methods
Diffstat (limited to 'sys/dev/drm')
| -rw-r--r-- | sys/dev/drm/drm_vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index 556a196b601..2de97b41d08 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 } |
