diff options
| author | drochner <drochner@NetBSD.org> | 2007-03-21 17:01:56 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2007-03-21 17:01:56 +0000 |
| commit | 7a0663bdb73b95751e9d1b62baffaa56f8902bd5 (patch) | |
| tree | 04ba13e6828dfc6e7346b333631af3da3adf8c36 /sys/dev/drm | |
| parent | ff418f03d1c716840b6fd14b171be9e1e60c385b (diff) | |
revert previous - it doesn't work on i386 at least
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 2de97b41d08..556a196b601 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 pphys; + return atop(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 phys; + return atop(phys); #endif } |
