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:
parent
dd5dd8cfd9
commit
f09499f70f
2 changed files with 6 additions and 6 deletions
|
@ -736,11 +736,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
|
||||||
dma_retain();
|
dma_retain();
|
||||||
|
|
||||||
if(aligned)
|
if(aligned)
|
||||||
{
|
{ /* direct transfer, indirect is always uncached */
|
||||||
if(write)
|
if(write)
|
||||||
clean_dcache_range(buf, count * SECTOR_SIZE);
|
commit_dcache_range(buf, count * SECTOR_SIZE);
|
||||||
else
|
else
|
||||||
dump_dcache_range(buf, count * SECTOR_SIZE);
|
discard_dcache_range(buf, count * SECTOR_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
while(count)
|
while(count)
|
||||||
|
|
|
@ -866,11 +866,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
|
||||||
dma_retain();
|
dma_retain();
|
||||||
|
|
||||||
if(aligned)
|
if(aligned)
|
||||||
{
|
{ /* direct transfer, indirect is always uncached */
|
||||||
if(write)
|
if(write)
|
||||||
clean_dcache_range(buf, count * SECTOR_SIZE);
|
commit_dcache_range(buf, count * SECTOR_SIZE);
|
||||||
else
|
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;
|
const int cmd = write ? SD_WRITE_MULTIPLE_BLOCK : SD_READ_MULTIPLE_BLOCK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue