summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2014-02-26 13:26:03 -0800
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-04-07 17:43:36 +0200
commit83571bcab10bc8d6d73dc77b64442dbd281afc99 (patch)
tree34b0c8bc9bc940e95d2c74315379a8b4431ca20c /arch/arm/cpu/armv8
parentf5222cfd49bd3681008039e82aa7a1db3e6c9af4 (diff)
downloadu-boot-imx-83571bcab10bc8d6d73dc77b64442dbd281afc99.zip
u-boot-imx-83571bcab10bc8d6d73dc77b64442dbd281afc99.tar.gz
u-boot-imx-83571bcab10bc8d6d73dc77b64442dbd281afc99.tar.bz2
armv8/cache: Flush D-cache, invalidate I-cache for relocation
If D-cache is enabled, we need to flush it, and invalidate i-cache before jumping to the new location. This should be done right after relocation. Signed-off-by: York Sun <yorksun@freescale.com> CC: David Feng <fenghua@phytium.com.cn>
Diffstat (limited to 'arch/arm/cpu/armv8')
-rw-r--r--arch/arm/cpu/armv8/start.S6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S
index 90daa4d..e70c51d 100644
--- a/arch/arm/cpu/armv8/start.S
+++ b/arch/arm/cpu/armv8/start.S
@@ -122,12 +122,6 @@ ENDPROC(lowlevel_init)
/*-----------------------------------------------------------------------*/
ENTRY(c_runtime_cpu_setup)
- /* If I-cache is enabled invalidate it */
-#ifndef CONFIG_SYS_ICACHE_OFF
- ic iallu /* I+BTB cache invalidate */
- isb sy
-#endif
-
/* Relocate vBAR */
adr x0, vectors
switch_el x1, 3f, 2f, 1f