aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm2/i915/i915_gem.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-09-09 18:11:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-09-09 18:11:59 +0000
commitedb572a38c433b49f2a06fe12bed3f8156e88cfa (patch)
tree42d2ff2e91fcca16534848427856c6243db2126a /sys/dev/drm2/i915/i915_gem.c
parentd7510453f38b8f16eb426f321c6e638f5a770345 (diff)
downloadsrc-edb572a38c433b49f2a06fe12bed3f8156e88cfa.tar.gz
src-edb572a38c433b49f2a06fe12bed3f8156e88cfa.zip
Add a mmap flag (MAP_32BIT) on 64-bit platforms to request that a mapping use
an address in the first 2GB of the process's address space. This flag should have the same semantics as the same flag on Linux. To facilitate this, add a new parameter to vm_map_find() that specifies an optional maximum virtual address. While here, fix several callers of vm_map_find() to use a VMFS_* constant for the findspace argument instead of TRUE and FALSE. Reviewed by: alc Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=255426
Diffstat (limited to 'sys/dev/drm2/i915/i915_gem.c')
-rw-r--r--sys/dev/drm2/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm2/i915/i915_gem.c b/sys/dev/drm2/i915/i915_gem.c
index 5afea4e1e138..9af50d8f32dd 100644
--- a/sys/dev/drm2/i915/i915_gem.c
+++ b/sys/dev/drm2/i915/i915_gem.c
@@ -1291,7 +1291,7 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
addr = 0;
vm_object_reference(obj->vm_obj);
DRM_UNLOCK(dev);
- rv = vm_map_find(map, obj->vm_obj, args->offset, &addr, args->size,
+ rv = vm_map_find(map, obj->vm_obj, args->offset, &addr, args->size, 0,
VMFS_OPTIMAL_SPACE, VM_PROT_READ | VM_PROT_WRITE,
VM_PROT_READ | VM_PROT_WRITE, MAP_INHERIT_SHARE);
if (rv != KERN_SUCCESS) {