diff options
Diffstat (limited to 'firmware/target/arm/ata-pp5020.c')
-rw-r--r-- | firmware/target/arm/ata-pp5020.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ata-pp5020.c b/firmware/target/arm/ata-pp5020.c index 50e6e27c98..50a38cb23d 100644 --- a/firmware/target/arm/ata-pp5020.c +++ b/firmware/target/arm/ata-pp5020.c | |||
@@ -181,11 +181,11 @@ bool ata_dma_setup(void *addr, unsigned long bytes, bool write) { | |||
181 | 181 | ||
182 | if (write) { | 182 | if (write) { |
183 | /* If unflushed, old data may be written to disk */ | 183 | /* If unflushed, old data may be written to disk */ |
184 | cpucache_flush(); | 184 | commit_dcache(); |
185 | } | 185 | } |
186 | else { | 186 | else { |
187 | /* Invalidate cache because new data may be present in RAM */ | 187 | /* Invalidate cache because new data may be present in RAM */ |
188 | cpucache_invalidate(); | 188 | commit_discard_dcache(); |
189 | } | 189 | } |
190 | 190 | ||
191 | /* Clear pending interrupts so ata_dma_finish() can wait for an | 191 | /* Clear pending interrupts so ata_dma_finish() can wait for an |