summaryrefslogtreecommitdiff
path: root/linux/vm.c
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-07-19 20:41:51 +0000
committerRik Faith <faith@alephnull.com>2000-07-19 20:41:51 +0000
commitee9514b63b4309defc21a929deba1651a5dd8306 (patch)
treee52be1d2880769f25277484c47ad460289122152 /linux/vm.c
parentaed8549e91ade1582505ebce50e4a79d99b4436f (diff)
Allow SAREA > 1 page in size
Diffstat (limited to 'linux/vm.c')
-rw-r--r--linux/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/vm.c b/linux/vm.c
index 0b2b00e0..9dfd0d2b 100644
--- a/linux/vm.c
+++ b/linux/vm.c
@@ -88,7 +88,7 @@ struct page *drm_vm_shm_nopage(struct vm_area_struct *vma,
offset = address - vma->vm_start;
page = offset >> PAGE_SHIFT;
- physical = (unsigned long)dev->lock.hw_lock + (offset & (~PAGE_MASK));
+ physical = (unsigned long)dev->lock.hw_lock + offset;
atomic_inc(&mem_map[MAP_NR(physical)].count); /* Dec. by kernel */
DRM_DEBUG("0x%08lx (page %lu) => 0x%08lx\n", address, page, physical);