summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sd-as3525v2.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-25 11:10:40 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-25 11:10:40 +0000
commit8de2af7b9c52c305231c07a166063baa5496ac2e (patch)
tree3374dd24f707889c66797c2d6d9f72cbd2c6b7f9 /firmware/target/arm/as3525/sd-as3525v2.c
parentf54739a1a1b61c9b282785f88b823a436c3103df (diff)
downloadrockbox-8de2af7b9c52c305231c07a166063baa5496ac2e.tar.gz
rockbox-8de2af7b9c52c305231c07a166063baa5496ac2e.zip
sd-as3525*: use AS3525_PHYSICAL_ADDR
fix DMA buffers when the src/dst is in IRAM It worked fine because all the buffers are in DRAM, and the virtual address happens to be the physical address git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27876 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525v2.c')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index e8a0719b11..1c427b36f6 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -886,7 +886,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
886 } 886 }
887 else 887 else
888 { 888 {
889 dma_buf = aligned_buffer; 889 dma_buf = AS3525(&aligned_buffer[0]);
890 if(transfer > UNALIGNED_NUM_SECTORS) 890 if(transfer > UNALIGNED_NUM_SECTORS)
891 transfer = UNALIGNED_NUM_SECTORS; 891 transfer = UNALIGNED_NUM_SECTORS;
892 892