armv7: do not relocate _start twice
authorVincent Stehlé <v-stehle@ti.com>
Fri, 15 Mar 2013 06:54:00 +0000 (06:54 +0000)
committernotaz <notasas@gmail.com>
Sat, 2 Jul 2016 21:26:07 +0000 (00:26 +0300)
The _start symbol is already relocated, so do not add the relocation the second
time in c_runtime_cpu_setup.

This fixes e.g. the abort exception handling path, which ended in double fault
due to bad address in VBAR.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Reported-by: Lubomir Popov <lpopov@mm-sol.com>
arch/arm/cpu/armv7/start.S

index dcc1f83..a7c591e 100644 (file)
@@ -254,7 +254,6 @@ ENTRY(c_runtime_cpu_setup)
 #if !defined(CONFIG_TEGRA20)
        /* Set vector address in CP15 VBAR register */
        ldr     r0, =_start
-       add     r0, r0, r9
        mcr     p15, 0, r0, c12, c0, 0  @Set VBAR
 #endif /* !Tegra20 */