arm: Update our 'ret' assembler macro slightly
We only support cores that do Thumb-1 or later. So we add a comment to explain this and remove the architecture test. Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Mans Rullgard <mans@mansr.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
9da52f8f67
commit
431afb4ef9
|
@ -57,17 +57,17 @@
|
||||||
#define PLD(code...)
|
#define PLD(code...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We only support cores that support at least Thumb-1 and thus we use
|
||||||
|
* 'bx lr'
|
||||||
|
*/
|
||||||
.irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo
|
.irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo
|
||||||
.macro ret\c, reg
|
.macro ret\c, reg
|
||||||
#if defined(__ARM_ARCH_5E__)
|
|
||||||
mov\c pc, \reg
|
|
||||||
#else
|
|
||||||
.ifeqs "\reg", "lr"
|
.ifeqs "\reg", "lr"
|
||||||
bx\c \reg
|
bx\c \reg
|
||||||
.else
|
.else
|
||||||
mov\c pc, \reg
|
mov\c pc, \reg
|
||||||
.endif
|
.endif
|
||||||
#endif
|
|
||||||
.endm
|
.endm
|
||||||
.endr
|
.endr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue