1 [Adapted from yocto project]
3 Add ARM support into xf86drm.h. This provides support for Xorg interface.
4 Without this the vivante samples will hang during close requiring a reboot
6 Upstream-Status: Pending
8 Signed-off-by: Lauren Post <lauren.post@freescale.com>
9 Signed-off-by: Evan Kotara <evan.kotara@freescale.com>
11 diff --git a/xf86drm.h b/xf86drm.h
14 @@ -461,6 +461,23 @@ do { register unsigned int __old __asm("
18 +#elif defined(__arm__)
20 + #define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
22 + #define DRM_CAS(lock,old,new,__ret) \
24 + __asm__ __volatile__ ( \
25 + "1: ldrex %0, [%1]\n" \
28 + " strexeq %0, %3, [%1]\n" \
31 + : "r" (lock), "r" (old), "r" (new) \
35 #endif /* architecture */
36 #endif /* __GNUC__ >= 2 */