summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorDavid Feng <fenghua@phytium.com.cn>2014-04-19 09:45:21 +0800
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-05-25 15:26:00 +0200
commit1277bac0d21bfa6952bdb14fcbf4134aa3018056 (patch)
treefc28d322087837451826a248dda13390603d58b9 /arch/arm
parent46e09e6d1eb32a90705d162411476f57fff13860 (diff)
downloadu-boot-imx-1277bac0d21bfa6952bdb14fcbf4134aa3018056.zip
u-boot-imx-1277bac0d21bfa6952bdb14fcbf4134aa3018056.tar.gz
u-boot-imx-1277bac0d21bfa6952bdb14fcbf4134aa3018056.tar.bz2
Arm64 fix a bug of vbar_el3 initialization
Signed-off-by: David Feng <fenghua@phytium.com.cn>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv8/start.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S
index 33d3f36..4b11aa4 100644
--- a/arch/arm/cpu/armv8/start.S
+++ b/arch/arm/cpu/armv8/start.S
@@ -50,10 +50,10 @@ reset:
*/
adr x0, vectors
switch_el x1, 3f, 2f, 1f
-3: mrs x0, scr_el3
+3: msr vbar_el3, x0
+ mrs x0, scr_el3
orr x0, x0, #0xf /* SCR_EL3.NS|IRQ|FIQ|EA */
msr scr_el3, x0
- msr vbar_el3, x0
msr cptr_el3, xzr /* Enable FP/SIMD */
ldr x0, =COUNTER_FREQUENCY
msr cntfrq_el0, x0 /* Initialize CNTFRQ */