Blackfin: fix data cache flushing when doing icache flushing
authorMike Frysinger <vapier@gentoo.org>
Fri, 10 Apr 2009 20:52:08 +0000 (20:52 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 12 Jun 2009 10:03:45 +0000 (06:03 -0400)
commit5d89137a17ca804ee60077f5d4ad8d7ca60f0614
treee6445551fdb86ffdbb3da14b8ab91d0e05c94612
parentf82e0a0c67621df83458753aef580a3508d5428e
Blackfin: fix data cache flushing when doing icache flushing

Make sure we flush all data caches and their write buffers before flushing
icache, otherwise random edge cases could crop up where stale data is read
into icache from external memory.  As fallout, punt the combined icache +
dcache flush function since we cannot safely do them back to back -- the
SSYNC is needed between the dcache flush and the icache flush.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/cacheflush.h
arch/blackfin/kernel/bfin_ksyms.c
arch/blackfin/mach-common/cache.S