1
0
Fork 0
forked from len0rd/rockbox

Change sd-as3525*.c to the new cache coherency function names.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28046 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-09-08 17:16:52 +00:00
parent dd5dd8cfd9
commit f09499f70f
2 changed files with 6 additions and 6 deletions

View file

@ -736,11 +736,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
dma_retain();
if(aligned)
{
{ /* direct transfer, indirect is always uncached */
if(write)
clean_dcache_range(buf, count * SECTOR_SIZE);
commit_dcache_range(buf, count * SECTOR_SIZE);
else
dump_dcache_range(buf, count * SECTOR_SIZE);
discard_dcache_range(buf, count * SECTOR_SIZE);
}
while(count)

View file

@ -866,11 +866,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
dma_retain();
if(aligned)
{
{ /* direct transfer, indirect is always uncached */
if(write)
clean_dcache_range(buf, count * SECTOR_SIZE);
commit_dcache_range(buf, count * SECTOR_SIZE);
else
dump_dcache_range(buf, count * SECTOR_SIZE);
discard_dcache_range(buf, count * SECTOR_SIZE);
}
const int cmd = write ? SD_WRITE_MULTIPLE_BLOCK : SD_READ_MULTIPLE_BLOCK;