mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
mips: Heavily rework DMA & caching code
Based on code originally written by Amaury Pouly (g#1789, g#1791, g#1527) but rebased and heavily updated. Change-Id: Ic794abb5e8d89feb4b88fc3abe854270fb28db70
This commit is contained in:
parent
1ae8213a64
commit
0cb162a76b
16 changed files with 188 additions and 129 deletions
|
|
@ -28,7 +28,6 @@
|
|||
#include "pcm-internal.h"
|
||||
#include "cpu.h"
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
** Playback DMA transfer
|
||||
**/
|
||||
|
|
@ -60,8 +59,8 @@ static inline void set_dma(const void *addr, size_t size)
|
|||
int burst_size;
|
||||
logf("%x %d %x", (unsigned int)addr, size, REG_AIC_SR);
|
||||
|
||||
dma_cache_wback_inv((unsigned long)addr, size);
|
||||
|
||||
commit_discard_dcache_range(addr, size);
|
||||
|
||||
if(size % 16)
|
||||
{
|
||||
if(size % 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue