summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-09-08 17:16:52 +0000
committerThomas Martitz <kugel@rockbox.org>2010-09-08 17:16:52 +0000
commitf09499f70ff7183415073af61174b0ea2915373f (patch)
treedf5665230b9b11d0247da0f8a054aa448907a55c /firmware/target/arm
parentdd5dd8cfd9d3e98b87d64e34f449fff2df30fe7f (diff)
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
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c6
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index 115f2f1f0d..0dc29c8aa5 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -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)
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index bef2e41db6..a4b6285c55 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -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;