Re: [U-Boot] [PATCH] armv8: Flush dcache before switching to EL2

2014-04-07 Thread Albert ARIBAUD
Hi York, On Mon, 31 Mar 2014 14:40:32 -0700, York Sun wrote: > For ARMv8, U-boot has been running at EL3 with cache and MMU enabled. > Without proper setup for EL2, cache and MMU are both disabled (out of > reset). Before switching, we need to flush the dcache to make sure the > data is in the m

Re: [U-Boot] [PATCH] armv8: Flush dcache before switching to EL2

2014-04-02 Thread FengHua
> -Original Messages- > From: "York Sun" > Sent Time: 2014-04-01 05:40:32 (Tuesday) > To: albert.u.b...@aribaud.net > Cc: u-boot@lists.denx.de, "York Sun" > Subject: [U-Boot] [PATCH] armv8: Flush dcache before switching to EL2 > > For ARMv

[U-Boot] [PATCH] armv8: Flush dcache before switching to EL2

2014-03-31 Thread York Sun
For ARMv8, U-boot has been running at EL3 with cache and MMU enabled. Without proper setup for EL2, cache and MMU are both disabled (out of reset). Before switching, we need to flush the dcache to make sure the data is in the main memory. Signed-off-by: York Sun --- arch/arm/lib/bootm.c |1 +