(DO_RET): New.

This commit is contained in:
Ulrich Drepper 2003-09-17 18:09:36 +00:00
parent 12a15026b8
commit 644d82249f

View File

@ -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. */