u-boot-brain/arch
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
..
arm arm: move flush_dcache_all() to just before disable cache 2013-01-10 22:21:27 +01:00
avr32 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
blackfin common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
m68k env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
microblaze env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
mips mips: serial: Fix busted manual relocation 2012-12-12 13:20:24 +01:00
nds32 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
nios2 nios2: remove asm/status_led.h 2012-11-10 19:45:58 +08:00
openrisc openrisc: Change bi_baudrate and global data baudrate to int 2012-10-19 15:25:45 -07:00
powerpc env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
sandbox common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
sh sh: fix trigger_address_error() 2012-11-30 15:06:04 +09:00
sparc env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
x86 x86: Build vga video code only if CONFIG_VIDEO_VGA is defined 2012-12-06 14:30:44 -08:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00