1/* Various definitons used the the ARM uClibc assembly code. */ 2#ifndef _ARM_ASM_H 3#define _ARM_ASM_H 4 5#ifdef __thumb2__ 6.thumb 7.syntax unified 8#define IT(t, cond) i##t cond 9#else 10/* XXX: This can be removed if/when we require an assembler that supports 11 unified assembly syntax. */ 12#define IT(t, cond) 13/* Code to return from a thumb function stub. */ 14#ifdef __ARM_ARCH_4T__ 15#define POP_RET pop {r2, pc} 16#else 17#define POP_RET pop {r2, r3}; bx r3 18#endif 19#endif 20 21#if defined(__ARM_ARCH_6M__) 22/* Force arm mode to flush out errors on M profile cores. */ 23#undef IT 24#define THUMB1_ONLY 1 25#endif 26 27#endif /* _ARM_ASM_H */ 28 29