diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/reloc.h | 5 | ||||
-rw-r--r-- | arch/arm/src/arm/atomics.s | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/reloc.h b/arch/arm/reloc.h index e1ef3506..6227bd1e 100644 --- a/arch/arm/reloc.h +++ b/arch/arm/reloc.h @@ -28,10 +28,5 @@ #define REL_TPOFF R_ARM_TLS_TPOFF32 //#define REL_TLSDESC R_ARM_TLS_DESC -#ifdef __thumb__ #define CRTJMP(pc,sp) __asm__ __volatile__( \ "mov sp,%1 ; bx %0" : : "r"(pc), "r"(sp) : "memory" ) -#else -#define CRTJMP(pc,sp) __asm__ __volatile__( \ - "mov sp,%1 ; tst %0,#1 ; moveq pc,%0 ; bx %0" : : "r"(pc), "r"(sp) : "memory" ) -#endif diff --git a/arch/arm/src/arm/atomics.s b/arch/arm/src/arm/atomics.s index f241cc02..ecf3f05a 100644 --- a/arch/arm/src/arm/atomics.s +++ b/arch/arm/src/arm/atomics.s @@ -11,8 +11,6 @@ __a_barrier: .global __a_barrier_dummy .hidden __a_barrier_dummy __a_barrier_dummy: - tst lr,#1 - moveq pc,lr bx lr .global __a_barrier_oldkuser .hidden __a_barrier_oldkuser @@ -24,8 +22,6 @@ __a_barrier_oldkuser: mov lr,pc mov pc,ip pop {r0,r1,r2,r3,ip,lr} - tst lr,#1 - moveq pc,lr bx lr .global __a_barrier_v6 .hidden __a_barrier_v6 @@ -53,8 +49,6 @@ __a_cas_dummy: ldr r0,[r2] subs r0,r3,r0 streq r1,[r2] - tst lr,#1 - moveq pc,lr bx lr .global __a_cas_v6 .hidden __a_cas_v6 |