]> code.ossystems Code Review - meta-freescale.git/commitdiff
libdrm: Add ite instruction to mx6 ARM patch
authorThomas Elste <thomas.elste@imms.de>
Fri, 13 Jun 2014 13:46:26 +0000 (15:46 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 16 Jun 2014 12:31:40 +0000 (09:31 -0300)
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>
meta-fsl-arm/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch

index 4389fe4ab1c412252c84adacd66056edfc469b36..1160cd10ac513f99d09332177b036203d0710194 100644 (file)
@@ -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)                         \