diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-12-15 04:59:54 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-12-15 04:59:54 +0000 |
commit | b38aff3bb464aa95b8b2f90afe716b60ec2cb942 (patch) | |
tree | c216eccadfeff6571e435c478e3bbc32d33b2c15 /sys/dev/pci/drm | |
parent | 0f3a260613b896e64171926d73bdf2f5d5eaa481 (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.c | 2 |
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, |