* [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly
@ 2017-03-02 14:59 Tom Rini
2017-03-07 20:59 ` Albert ARIBAUD
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tom Rini @ 2017-03-02 14:59 UTC (permalink / raw)
To: u-boot
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>
---
arch/arm/include/asm/assembler.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h
index c56daf2a1f69..d24be2d484fe 100644
--- a/arch/arm/include/asm/assembler.h
+++ b/arch/arm/include/asm/assembler.h
@@ -57,17 +57,17 @@
#define PLD(code...)
#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
.macro ret\c, reg
-#if defined(__ARM_ARCH_5E__)
- mov\c pc, \reg
-#else
.ifeqs "\reg", "lr"
bx\c \reg
.else
mov\c pc, \reg
.endif
-#endif
.endm
.endr
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly
2017-03-02 14:59 [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly Tom Rini
@ 2017-03-07 20:59 ` Albert ARIBAUD
2017-03-07 21:47 ` Vikas MANOCHA
2017-03-18 0:16 ` [U-Boot] " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Albert ARIBAUD @ 2017-03-07 20:59 UTC (permalink / raw)
To: u-boot
Hello Tom,
LGTM.
On Thu, 2 Mar 2017 09:59:30 -0500, Tom Rini <trini@konsulko.com> wrote:
> 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>
> ---
> arch/arm/include/asm/assembler.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h
> index c56daf2a1f69..d24be2d484fe 100644
> --- a/arch/arm/include/asm/assembler.h
> +++ b/arch/arm/include/asm/assembler.h
> @@ -57,17 +57,17 @@
> #define PLD(code...)
> #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
> .macro ret\c, reg
> -#if defined(__ARM_ARCH_5E__)
> - mov\c pc, \reg
> -#else
> .ifeqs "\reg", "lr"
> bx\c \reg
> .else
> mov\c pc, \reg
> .endif
> -#endif
> .endm
> .endr
>
> --
> 1.9.1
>
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly
2017-03-02 14:59 [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly Tom Rini
2017-03-07 20:59 ` Albert ARIBAUD
@ 2017-03-07 21:47 ` Vikas MANOCHA
2017-03-18 0:16 ` [U-Boot] " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Vikas MANOCHA @ 2017-03-07 21:47 UTC (permalink / raw)
To: u-boot
Hi Tom,
> -----Original Message-----
> From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Tom Rini
> Sent: Thursday, March 02, 2017 7:00 AM
> To: u-boot at lists.denx.de
> Cc: Mans Rullgard <mans@mansr.com>
> Subject: [U-Boot] [PATCH] 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.
We can remove the same support for __ARM_ARCH_4__ from arch/arm/lib/relocate.S also.
Also the __ARM_ARCH_5*__ usage for PLD define in same assembler.h.
Cheers,
Vikas
>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> Cc: Mans Rullgard <mans@mansr.com>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> arch/arm/include/asm/assembler.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h
> index c56daf2a1f69..d24be2d484fe 100644
> --- a/arch/arm/include/asm/assembler.h
> +++ b/arch/arm/include/asm/assembler.h
> @@ -57,17 +57,17 @@
> #define PLD(code...)
> #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
> .macro ret\c, reg
> -#if defined(__ARM_ARCH_5E__)
> - mov\c pc, \reg
> -#else
> .ifeqs "\reg", "lr"
> bx\c \reg
> .else
> mov\c pc, \reg
> .endif
> -#endif
> .endm
> .endr
>
> --
> 1.9.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/listinfo/u-boot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] arm: Update our 'ret' assembler macro slightly
2017-03-02 14:59 [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly Tom Rini
2017-03-07 20:59 ` Albert ARIBAUD
2017-03-07 21:47 ` Vikas MANOCHA
@ 2017-03-18 0:16 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2017-03-18 0:16 UTC (permalink / raw)
To: u-boot
On Thu, Mar 02, 2017 at 09:59:30AM -0500, Tom Rini wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170317/bfba53a9/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-18 0:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02 14:59 [U-Boot] [PATCH] arm: Update our 'ret' assembler macro slightly Tom Rini
2017-03-07 20:59 ` Albert ARIBAUD
2017-03-07 21:47 ` Vikas MANOCHA
2017-03-18 0:16 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.