]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
armv7: do not relocate _start twice
authorVincent Stehlé <v-stehle@ti.com>
Fri, 15 Mar 2013 06:54:00 +0000 (06:54 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 28 Mar 2013 09:15:06 +0000 (10:15 +0100)
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 c0e184994abd729c3422750023620229956f3db3..36a4c3cfda1cfdcd4a0431305ae79068fb2fa795 100644 (file)
@@ -254,7 +254,6 @@ ENTRY(c_runtime_cpu_setup)
 #if !defined(CONFIG_TEGRA)
        /* Set vector address in CP15 VBAR register */
        ldr     r0, =_start
-       add     r0, r0, r9
        mcr     p15, 0, r0, c12, c0, 0  @Set VBAR
 #endif /* !Tegra */