diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2017-02-27 20:19:07 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-03-01 21:28:31 -0500 |
commit | 6b4e9426834580810790ecfa924979d61c5c1987 (patch) | |
tree | 79d6c5fa93e5dc7af0f6371c34c9bb21e314dd82 /arch/arm/include/asm/arch-s32v234/mmdc.h | |
parent | ee6fb217cbf3e81cd2c5f1a13f989cf59016781f (diff) |
armv5te: make 'ret lr' produce iinterworking 'bx lr'
Current ARM assembler helper for the 'return to caller' pseudo-instruction
turns 'ret lr' into 'mov pc, lr' for ARMv5TE. This causes the core to remain
in its current ARM state even when the routine doing the 'ret' was called
from Thumb-1 state, triggering an undefined instruction exception.
This causes early run-time failures in all boards compiled using the Thumb-1
instruction set (for instance the Open-RD family).
ARMv5TE supports 'bx lr' which properly implements interworking and thus
correctly returns to Thumb-1 state from ARM state.
This change makes 'ret lr' turn into 'bx lr' for ARMv5TE.
Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'arch/arm/include/asm/arch-s32v234/mmdc.h')
0 files changed, 0 insertions, 0 deletions