summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>2017-06-01 07:33:29 +0100
committerTom Rini <trini@konsulko.com>2017-06-05 14:13:14 -0400
commit71d2cf23595e6174d50950d60ff28e028a183185 (patch)
treeb310ce92f62a53876478942536e15e9b869a7f7e
parent111a6af97acd9bca2ffe0b976c8962cfe8a9acc6 (diff)
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.edworthy@renesas.com>
-rw-r--r--arch/arm/cpu/armv7m/start.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7m/start.S b/arch/arm/cpu/armv7m/start.S
index 49f27201cf..890c773963 100644
--- a/arch/arm/cpu/armv7m/start.S
+++ b/arch/arm/cpu/armv7m/start.S
@@ -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: