aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Elste <thomas.elste@imms.de>2014-06-13 15:46:26 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2014-06-30 09:17:26 -0300
commitbb2a2bad4da8b8b3c0b7c8956fd5ddb5ba027c3a (patch)
treeec7eb93a7bd398142e4daef39536b51126ca01a5
parentb3cf9ce918cd4fcbc5c39ade47d384414ea590ed (diff)
downloadmeta-fsl-arm-bb2a2bad4da8b8b3c0b7c8956fd5ddb5ba027c3a.tar.gz
meta-fsl-arm-bb2a2bad4da8b8b3c0b7c8956fd5ddb5ba027c3a.tar.bz2
meta-fsl-arm-bb2a2bad4da8b8b3c0b7c8956fd5ddb5ba027c3a.zip
libdrm: Add ite instruction to mx6 ARM patch
Building with Angstrom toolchain fails on inline assembler added by drm-update-arm.patch because of missing ite instruction. Insert instruction to make the inline assembler block Thumb2 compatible. Signed-off-by: Thomas Elste <thomas.elste@imms.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch
index 4389fe4..1160cd1 100644
--- a/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch
+++ b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch
@@ -9,7 +9,7 @@ Signed-off-by: Evan Kotara <evan.kotara@freescale.com>
diff --git a/xf86drm.h b/xf86drm.h
--- a/xf86drm.h
+++ b/xf86drm.h
-@@ -455,6 +455,22 @@ do { register unsigned int __old __asm("o0"); \
+@@ -461,6 +461,23 @@ do { register unsigned int __old __asm("
: "cr0", "memory"); \
} while (0)
@@ -22,6 +22,7 @@ diff --git a/xf86drm.h b/xf86drm.h
+ __asm__ __volatile__ ( \
+ "1: ldrex %0, [%1]\n" \
+ " teq %0, %2\n" \
++ " ite eq\n" \
+ " strexeq %0, %3, [%1]\n" \
+ " movne %0, #1\n" \
+ : "=&r" (__ret) \