]> git.sur5r.net Git - u-boot/commitdiff
arm: v7: Update VBAR only if available
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 26 Apr 2018 12:51:25 +0000 (18:21 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 7 May 2018 19:49:52 +0000 (15:49 -0400)
Not all ARM V7 based cpus has VBAR for remapping
vector base address. So, update VBAR only if it available.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/cpu/armv7/start.S

index f5df597e840a0a168ba9223446958c247fa4e74b..8c19a83f8b5d0716eeeb1a6fdff35ac1a5bf9209 100644 (file)
@@ -72,9 +72,11 @@ switch_to_hypervisor_ret:
        bic     r0, #CR_V               @ V = 0
        mcr     p15, 0, r0, c1, c0, 0   @ Write CP15 SCTLR Register
 
+#ifdef CONFIG_HAS_VBAR
        /* Set vector address in CP15 VBAR register */
        ldr     r0, =_start
        mcr     p15, 0, r0, c12, c0, 0  @Set VBAR
+#endif
 #endif
 
        /* the mask ROM code should have PLL and others stable */