u-boot/arch/arm
Arun Mankuzhi 44df5e8d30 arm: move flush_dcache_all() to just before disable cache
In Cortex-A15 architecture, when we run cache invalidate
the cache clean operation executes automatically.
So if there are any dirty cache lines before disabling the L2 cache
these will be synchronized with the main memory when
invalidate_dcache_all() runs in the last part of U-boot

The two functions after flush_dcache_all is using the stack. So this
data will be on the cache. After disable when invalidate is called the
data will be flushed from cache to memory. This corrupts the stack in
invalida_dcache_all. So this change is required to avoid the u-boot
hang.

So flush has to be done just before clearing CR_C bit

Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
2013-01-10 22:21:27 +01:00
..
cpu Merge 'u-boot-atmel/master' into 'u-boot-arm/master' 2013-01-09 20:01:48 +01:00
dts tegra: fdt: Add LCD definitions for Tegra 2012-11-19 08:15:36 -07:00
imx-common imx-common: cpu: add imx_ddr_size 2012-11-10 08:15:40 +01:00
include/asm Merge 'u-boot-atmel/master' into 'u-boot-arm/master' 2013-01-09 20:01:48 +01:00
lib arm: move flush_dcache_all() to just before disable cache 2013-01-10 22:21:27 +01:00
config.mk arm: work around assembler bug 2012-10-04 14:19:04 +02:00