From: Lokesh Vutla Date: Tue, 24 Apr 2018 18:24:44 +0530 Subject: [U-Boot] [RFC PATCH 1/5] arm: v7: Update VBAR only if available In-Reply-To: <20180424125448.23109-1-lokeshvutla@ti.com> References: <20180424125448.23109-1-lokeshvutla@ti.com> Message-ID: <20180424125448.23109-2-lokeshvutla@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Not all ARM V7 based cpus has VBAR for remapping vector base address. So, update VBAR only if it available. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/cpu/armv7/start.S | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.17.0