]> git.sur5r.net Git - u-boot/commitdiff
armv7m: Fix larger builds
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>
Thu, 1 Jun 2017 06:33:29 +0000 (07:33 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 18:13:14 +0000 (14:13 -0400)
The branch instruction only has an 11-bit relative target address, which
is sometimes not enough.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
arch/arm/cpu/armv7m/start.S

index 49f27201cf8ad09ea78173efac40f7ab52b40123..890c7739635961039eb6fffd0d2655c3836888b5 100644 (file)
@@ -5,10 +5,12 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
+#include <asm/assembler.h>
+
 .globl reset
 .type reset, %function
 reset:
-       b       _main
+       W(b)    _main
 
 .globl c_runtime_cpu_setup
 c_runtime_cpu_setup: