aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-17 18:09:36 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-17 18:09:36 +0000
commit644d82249f8cc39df2db3b97105380b6c12f9722 (patch)
tree3390529bcb2327729a1d59d0d29d8332356a0dc8
parent12a15026b8729a19acba9fc6ad286da25536768d (diff)
downloadglibc-644d82249f8cc39df2db3b97105380b6c12f9722.tar.xz
glibc-644d82249f8cc39df2db3b97105380b6c12f9722.zip
(DO_RET): New.
-rw-r--r--sysdeps/arm/sysdep.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/arm/sysdep.h b/sysdeps/arm/sysdep.h
index 4bc7d827b8..cb3f105afe 100644
--- a/sysdeps/arm/sysdep.h
+++ b/sysdeps/arm/sysdep.h
@@ -52,11 +52,20 @@
ldm##cond base,reglist
#define RETINSTR(instr, regs...)\
instr regs
+#ifdef __THUMB_INTERWORK__
+#define DO_RET(_reg) \
+ bx _reg
+#else
+#define DO_RET(_reg) \
+ mov pc, _reg
+#endif
#else /* APCS-26 */
#define LOADREGS(cond, base, reglist...)\
ldm##cond base,reglist^
#define RETINSTR(instr, regs...)\
instr##s regs
+#define DO_RET(_reg) \
+ movs pc, _reg
#endif
/* Define an entry point visible from C. */