Source: blcr
Severity: important
Tags: patch

This patch is a backport from the Ubuntu armel package. Debian armhf
uses thumb2 just as Ubuntu armel, so it has the same build problems.
Please consider applying the patch.

Thanks

Konstantinos

-- System Information:
Debian Release: squeeze/sid
Architecture: armhf (armv7l)

Kernel: Linux 2.6.31.14-efikamx (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ruN blcr-0.8.2/debian/patches/04_arm_it_instruction.patch blcr-0.8.2.armhf//debian/patches/04_arm_it_instruction.patch
--- blcr-0.8.2/debian/patches/04_arm_it_instruction.patch	1970-01-01 02:00:00.000000000 +0200
+++ blcr-0.8.2.armhf//debian/patches/04_arm_it_instruction.patch	2011-03-30 13:09:01.827299231 +0300
@@ -0,0 +1,18 @@
+## Description: add some description
+## Origin/Author: add some origin or author
+## Bug: bug URL
+Index: blcr-0.8.2/libcr/arch/arm/cr_atomic.h
+===================================================================
+--- blcr-0.8.2.orig/libcr/arch/arm/cr_atomic.h	2010-12-15 15:59:04.000000000 +0200
++++ blcr-0.8.2/libcr/arch/arm/cr_atomic.h	2010-12-15 15:59:03.000000000 +0200
+@@ -166,7 +166,9 @@
+ 	"	adr	lr, 1f		@ lr = return addr	\n"
+ 	"	sub	pc, r3, #" _STRINGIFY(cri_kuser_offset) "\n"
+ #endif
+-	"1:	ldrcc   ip, [r2]        @ if (!swapped) ip=*p   \n"
++	"1:	        \n"
++	"       ite cc                  @ needed in Thumb2 mode \n"
++	"       ldrcc   ip, [r2]        @ if (!swapped) ip=*p   \n"
+ 	"       eorcs   ip, r4, #1      @ else ip=oldval^1      \n"
+ 	"       teq     r4, ip          @ if (ip == oldval)     \n"
+ 	"       beq     0b              @    then retry           "
diff -ruN blcr-0.8.2/debian/patches/series blcr-0.8.2.armhf//debian/patches/series
--- blcr-0.8.2/debian/patches/series	2010-10-12 12:43:55.000000000 +0300
+++ blcr-0.8.2.armhf//debian/patches/series	2011-03-30 13:09:30.827298480 +0300
@@ -2,6 +2,7 @@
 02_fix_i386_on_amd64.diff
 03_fix_2.6.32
 04_arm_v7
+04_arm_it_instruction.patch
 05_arm_always_kuser
 06_ubuntu_linux-rt_support
 07_fix_cross_pbuilder

Reply via email to