diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2014-09-07 19:41:37 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2014-09-28 17:09:34 +0100 |
commit | dadc9eff9fd606335a7b3d5d58065a2e8d629672 (patch) | |
tree | 2ef0dab8242a8d61336d4c643b9df8a65167f128 /libkms/vmwgfx.c | |
parent | faf51d5694e3f0ec12c7fa1fd2f87fc96a300fe3 (diff) | |
download | libdrm-dadc9eff9fd606335a7b3d5d58065a2e8d629672.tar.gz libdrm-dadc9eff9fd606335a7b3d5d58065a2e8d629672.tar.bz2 libdrm-dadc9eff9fd606335a7b3d5d58065a2e8d629672.zip |
libkms: use drm_mmap/drm_munmap wrappers
... for all by exynos.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'libkms/vmwgfx.c')
-rw-r--r-- | libkms/vmwgfx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c index 08163a16..bc04133f 100644 --- a/libkms/vmwgfx.c +++ b/libkms/vmwgfx.c @@ -35,8 +35,8 @@ #include <string.h> #include "internal.h" -#include <sys/mman.h> #include "xf86drm.h" +#include "libdrm.h" #include "vmwgfx_drm.h" struct vmwgfx_bo @@ -146,7 +146,7 @@ vmwgfx_bo_map(struct kms_bo *_bo, void **out) return 0; } - map = mmap(NULL, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, bo->map_handle); + map = drm_mmap(NULL, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, bo->map_handle); if (map == MAP_FAILED) return -errno; @@ -173,7 +173,7 @@ vmwgfx_bo_destroy(struct kms_bo *_bo) if (bo->base.ptr) { /* XXX Sanity check map_count */ - munmap(bo->base.ptr, bo->base.size); + drm_munmap(bo->base.ptr, bo->base.size); bo->base.ptr = NULL; } |