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>
This commit is contained in:
@@ -58,7 +58,7 @@ extern u_long get_sclk(void);
|
||||
|
||||
extern void blackfin_icache_flush_range(const void *, const void *);
|
||||
extern void blackfin_dcache_flush_range(const void *, const void *);
|
||||
extern void blackfin_dcache_invalidate_range(const void *, const void *);
|
||||
extern void blackfin_dcache_flush_invalidate_range(const void *, const void *);
|
||||
|
||||
/* Use DMA to move data from on chip to external memory. While this is
|
||||
* required for only L1 instruction (it is not directly readable by the
|
||||
|
||||
Reference in New Issue
Block a user