mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 23:30:07 +00:00
(DO_RET): New.
This commit is contained in:
parent
12a15026b8
commit
644d82249f
@ -52,11 +52,20 @@
|
|||||||
ldm##cond base,reglist
|
ldm##cond base,reglist
|
||||||
#define RETINSTR(instr, regs...)\
|
#define RETINSTR(instr, regs...)\
|
||||||
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 */
|
#else /* APCS-26 */
|
||||||
#define LOADREGS(cond, base, reglist...)\
|
#define LOADREGS(cond, base, reglist...)\
|
||||||
ldm##cond base,reglist^
|
ldm##cond base,reglist^
|
||||||
#define RETINSTR(instr, regs...)\
|
#define RETINSTR(instr, regs...)\
|
||||||
instr##s regs
|
instr##s regs
|
||||||
|
#define DO_RET(_reg) \
|
||||||
|
movs pc, _reg
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define an entry point visible from C. */
|
/* Define an entry point visible from C. */
|
||||||
|
Loading…
Reference in New Issue
Block a user