diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-06 03:35:44 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-01-28 13:26:12 -0500 |
commit | 05b75e48832fc4afeecf8e76d704349557dffa35 (patch) | |
tree | 94fdae6bb39256105205cf8823f86b82e49aedd4 /cpu | |
parent | 68e5632494168095d75f120af70043b68afd2476 (diff) | |
download | u-boot-imx-05b75e48832fc4afeecf8e76d704349557dffa35.zip u-boot-imx-05b75e48832fc4afeecf8e76d704349557dffa35.tar.gz u-boot-imx-05b75e48832fc4afeecf8e76d704349557dffa35.tar.bz2 |
Blackfin: fix dcache handling when doing dma memcpy's
Our dcache invalidate function doesn't just invalidate, it also flushes.
So rename the function accordingly and fix the dma_memcpy() function so it
doesn't inadvertently corrupt the data destination.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/blackfin/cache.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/blackfin/cache.S b/cpu/blackfin/cache.S index 51bdb30..9facadf 100644 --- a/cpu/blackfin/cache.S +++ b/cpu/blackfin/cache.S @@ -39,7 +39,7 @@ ENTRY(_blackfin_dcache_flush_range) RTS; ENDPROC(_blackfin_dcache_flush_range) -ENTRY(_blackfin_dcache_invalidate_range) +ENTRY(_blackfin_dcache_flush_invalidate_range) R2 = -32; R2 = R0 & R2; P0 = R2; @@ -58,4 +58,4 @@ ENTRY(_blackfin_dcache_invalidate_range) FLUSHINV[P0]; SSYNC; RTS; -ENDPROC(_blackfin_dcache_invalidate_range) +ENDPROC(_blackfin_dcache_flush_invalidate_range) |