From: Dave Martin Date: Tue, 8 Feb 2011 11:09:52 +0000 (+0100) Subject: ARM: 6653/1: bitops: Use BX instead of MOV PC,LR X-Git-Tag: v2.6.39-rc1~463^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ba6e69ad887f8a814267ed36fd4bfbddf8855a9;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: 6653/1: bitops: Use BX instead of MOV PC,LR The kernel doesn't officially need to interwork, but using BX wherever appropriate will help educate people into good assembler coding habits. BX is appropriate here because this code is predicated on __LINUX_ARM_ARCH__ >= 6 Signed-off-by: Dave Martin Acked-by: Nicolas Pitre Signed-off-by: Russell King --- diff --git a/arch/arm/lib/bitops.h b/arch/arm/lib/bitops.h index a9d9d15..10d868a 100644 --- a/arch/arm/lib/bitops.h +++ b/arch/arm/lib/bitops.h @@ -12,7 +12,7 @@ strex r0, r2, [r1] cmp r0, #0 bne 1b - mov pc, lr + bx lr .endm .macro testop, instr, store @@ -33,7 +33,7 @@ smp_dmb cmp r0, #0 movne r0, #1 -2: mov pc, lr +2: bx lr .endm #else .macro bitop, instr