On Tue, Feb 09, 2016 at 04:48:28PM +0100, David Müller wrote:

> Signed-off-by: David Müller <[email protected]>
> ---
>  arch/arm/lib/crt0.S | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S
> index 2f4c14e..8415f77 100644
> --- a/arch/arm/lib/crt0.S
> +++ b/arch/arm/lib/crt0.S
> @@ -167,8 +167,12 @@ clbss_l:cmp      r0, r1                  /* while not at 
> end of BSS */
>       mov     r0, r9                  /* gd_t */
>       ldr     r1, [r9, #GD_RELOCADDR] /* dest_addr */
>       /* call board_init_r */
> +#if defined(CONFIG_SYS_THUMB_BUILD)
> +     ldr     lr, =board_init_r       /* this is auto-relocated! */
> +     bx      lr
> +#else
>       ldr     pc, =board_init_r       /* this is auto-relocated! */
> -
> +#endif
>       /* we should not return here. */
>  #endif

In general, my preference is always to use the thumb compatible way, can
you rework like that and explain in the commit message?  Thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to