[U-Boot] [PATCH 5/7] arm: add thumb compatible return instructions
Allen Martin
amartin at nvidia.com
Fri Jul 6 20:09:00 CEST 2012
Convert return instructions to thumb compatible bx returns. Probably
what's really needed here is a thumb version of all the libgcc
assembly routines.
Signed-off-by: Allen Martin <amartin at nvidia.com>
---
arch/arm/lib/_udivsi3.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/lib/_udivsi3.S b/arch/arm/lib/_udivsi3.S
index 1309802..0b33b04 100644
--- a/arch/arm/lib/_udivsi3.S
+++ b/arch/arm/lib/_udivsi3.S
@@ -64,7 +64,7 @@ Loop3:
bne Loop3
Lgot_result:
mov r0, result
- mov pc, lr
+ bx lr
Ldiv0:
str lr, [sp, #-4]!
bl __div0 (PLT)
@@ -80,7 +80,7 @@ __aeabi_uidivmod:
ldmfd sp!, {r1, r2, ip, lr}
mul r3, r0, r2
sub r1, r1, r3
- mov pc, lr
+ bx lr
.globl __aeabi_idivmod
__aeabi_idivmod:
@@ -90,4 +90,4 @@ __aeabi_idivmod:
ldmfd sp!, {r1, r2, ip, lr}
mul r3, r0, r2
sub r1, r1, r3
- mov pc, lr
+ bx lr
--
1.7.9.5
More information about the U-Boot
mailing list