summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/lib/setjmp_arm.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/lib/setjmp_arm.S b/apps/codecs/lib/setjmp_arm.S
index a4d5a016bd..ee5ebd9169 100644
--- a/apps/codecs/lib/setjmp_arm.S
+++ b/apps/codecs/lib/setjmp_arm.S
@@ -59,6 +59,8 @@
#define RET movs pc, lr
#elif defined(__thumb2__)
#define RET bx lr
+#elif !defined(ROCKBOX_SUPPORTS_AN_ARMV4_NON_T_CPU)
+#define RET bx lr /* BX exists on v4T, v5 and more recent architectures */
#else
#define RET tst lr, #1; \
moveq pc, lr ; \