projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12a1502
)
(DO_RET): New.
author
Ulrich Drepper
<drepper@redhat.com>
Wed, 17 Sep 2003 18:09:36 +0000
(18:09 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Wed, 17 Sep 2003 18:09:36 +0000
(18:09 +0000)
sysdeps/arm/sysdep.h
patch
|
blob
|
history
diff --git
a/sysdeps/arm/sysdep.h
b/sysdeps/arm/sysdep.h
index
4bc7d82
..
cb3f105
100644
(file)
--- 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. */