diff mbox series

[U-Boot,v2,1/7] arm: v7: Update VBAR only if available

Message ID 20180426125131.10661-2-lokeshvutla@ti.com
State Accepted
Delegated to: Tom Rini
Headers show
Series arm: Introduce v7R support | expand

Commit Message

Lokesh Vutla April 26, 2018, 12:51 p.m. UTC
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 | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini May 8, 2018, 12:45 a.m. UTC | #1
On Thu, Apr 26, 2018 at 06:21:25PM +0530, Lokesh Vutla wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
index 7e2695761e..937f7051fe 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -73,9 +73,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 */