From 8f956760a93f3e4cb330a377715887ed55771db1 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 31 Mar 2014 16:09:40 +0200 Subject: libdrm: update patch to be compatible with thumb2 --- .../drm/libdrm/mx6/drm-update-arm.patch | 36 ++++++++++++++++++++++ recipes-graphics/drm/libdrm_2.4.46.bbappend | 1 + 2 files changed, 37 insertions(+) create mode 100644 recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch create mode 100644 recipes-graphics/drm/libdrm_2.4.46.bbappend (limited to 'recipes-graphics') diff --git a/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch new file mode 100644 index 0000000..a463d03 --- /dev/null +++ b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch @@ -0,0 +1,36 @@ +Add ARM support into xf86arm.h. This provides support for Xorg interface. +Without this the vivante samples will hang during close requiring a reboot + +Upstream-Status: Pending + +Signed-off-by: Lauren Post +Signed-off-by: Evan Kotara + +diff --git a/xf86drm.h b/xf86drm.h +--- a/xf86drm.h ++++ b/xf86drm.h +@@ -455,6 +455,24 @@ do { register unsigned int __old __asm("o0"); \ + : "cr0", "memory"); \ + } while (0) + ++#elif defined(__arm__) ++ #undef DRM_DEV_MODE ++ #define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) ++ ++ #define DRM_CAS(lock,old,new,__ret) \ ++ do { \ ++ __asm__ __volatile__ ( \ ++ "1: ldrex %0, [%1]\n" \ ++ " teq %0, %2\n" \ ++ " it eq\n" \ ++ " strexeq %0, %3, [%1]\n" \ ++ " it ne\n" \ ++ " movne %0, #1\n" \ ++ : "=&r" (__ret) \ ++ : "r" (lock), "r" (old), "r" (new) \ ++ : "cc","memory"); \ ++ } while (0) ++ + #endif /* architecture */ + #endif /* __GNUC__ >= 2 */ + diff --git a/recipes-graphics/drm/libdrm_2.4.46.bbappend b/recipes-graphics/drm/libdrm_2.4.46.bbappend new file mode 100644 index 0000000..72d991c --- /dev/null +++ b/recipes-graphics/drm/libdrm_2.4.46.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -- cgit v1.2.3