summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-12-15 04:59:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-12-15 04:59:54 +0000
commitb38aff3bb464aa95b8b2f90afe716b60ec2cb942 (patch)
treec216eccadfeff6571e435c478e3bbc32d33b2c15 /sys/dev/pci/drm
parent0f3a260613b896e64171926d73bdf2f5d5eaa481 (diff)
add a BRKSIZ define and use it for the heap gap constant, decoupling
heap gap from max data size. nothing else changes yet. ok deraadt
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/drm_bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_bufs.c b/sys/dev/pci/drm/drm_bufs.c
index d56644794a6..a4890cdd696 100644
--- a/sys/dev/pci/drm/drm_bufs.c
+++ b/sys/dev/pci/drm/drm_bufs.c
@@ -960,7 +960,7 @@ drm_mapbufs(struct drm_device *dev, void *data, struct drm_file *file_priv)
foff = 0;
}
- vaddr = round_page((vaddr_t)vms->vm_daddr + MAXDSIZ);
+ vaddr = round_page((vaddr_t)vms->vm_daddr + BRKSIZ);
retcode = uvm_mmap(&vms->vm_map, &vaddr, size,
UVM_PROT_READ | UVM_PROT_WRITE, UVM_PROT_ALL, MAP_SHARED,
(caddr_t)vn, foff, curproc->p_rlimit[RLIMIT_MEMLOCK].rlim_cur,