armv8/cache: Flush D-cache, invalidate I-cache for relocation
authorYork Sun <yorksun@freescale.com>
Wed, 26 Feb 2014 21:26:03 +0000 (13:26 -0800)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 7 Apr 2014 15:43:36 +0000 (17:43 +0200)
commit83571bcab10bc8d6d73dc77b64442dbd281afc99
tree34b0c8bc9bc940e95d2c74315379a8b4431ca20c
parentf5222cfd49bd3681008039e82aa7a1db3e6c9af4
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>
arch/arm/cpu/armv8/start.S
arch/arm/lib/relocate_64.S