Hi Phil,

> -----Original Message-----
> From: Phil Edworthy [mailto:phil.edwor...@renesas.com]
> Sent: Wednesday, May 24, 2017 7:34 AM
> To: Albert Aribaud <albert.u.b...@aribaud.net>
> Cc: Tom Rini <tr...@konsulko.com>; Vikas MANOCHA <vikas.mano...@st.com>; 
> Kamil Lulko <kamil.lu...@gmail.com>; u-
> b...@lists.denx.de; Phil Edworthy <phil.edwor...@renesas.com>
> Subject: [PATCH] armv7m: Fix larger builds
> 
> The branch instruction only has an 11-bit relative target address, which is 
> sometimes not enough.
> 
> Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com>
> ---
>  arch/arm/cpu/armv7m/start.S | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/cpu/armv7m/start.S b/arch/arm/cpu/armv7m/start.S index 
> 49f2720..d79adb5 100644
> --- a/arch/arm/cpu/armv7m/start.S
> +++ b/arch/arm/cpu/armv7m/start.S
> @@ -8,7 +8,8 @@
>  .globl       reset
>  .type reset, %function
>  reset:
> -     b       _main
> +     ldr     r0, =_main
> +     mov     pc, r0

How about using W(b) for wider range ?

Cheers,
Vikas

> 
>  .globl       c_runtime_cpu_setup
>  c_runtime_cpu_setup:
> --
> 2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to