[U-Boot] [PATCH 2/3] arm1176: move exception vectors after relocation

Georges Savoundararadj savoundg at gmail.com
Sun Sep 21 23:33:49 CEST 2014


ARM1176 has security extensions which includes the Vector Base Address
Register (VBAR) useful to move the exception vector after relocation.
This fix is similar to what is done for the ARMv7 (f8b9d1d3).

Signed-off-by: Georges Savoundararadj <savoundg at gmail.com>
---
 arch/arm/cpu/arm1176/start.S | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/cpu/arm1176/start.S b/arch/arm/cpu/arm1176/start.S
index 0704bdd..1c3dd91 100644
--- a/arch/arm/cpu/arm1176/start.S
+++ b/arch/arm/cpu/arm1176/start.S
@@ -131,5 +131,11 @@ skip_tcmdisable:
 
 	.globl	c_runtime_cpu_setup
 c_runtime_cpu_setup:
+/*
+ * Move vector table
+ */
+	/* Set vector address in CP15 VBAR register */
+	ldr     r0, =_start
+	mcr     p15, 0, r0, c12, c0, 0  @Set VBAR
 
 	mov	pc, lr
-- 
2.1.0



More information about the U-Boot mailing list