forked from len0rd/rockbox
Commit to certain names for cache coherency APIs and discard the aliases.
Wouldn't surprise me a bit to get some non-green. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31339 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
43d7a75369
commit
6a67707b5e
51 changed files with 120 additions and 213 deletions
|
|
@ -45,7 +45,7 @@ enum codec_status codec_start(enum codec_entry_call_reason reason)
|
|||
ci->memcpy(iramstart, iramcopy, iram_size);
|
||||
ci->memset(iedata, 0, ibss_size);
|
||||
/* make the icache (if it exists) up to date with the new code */
|
||||
ci->cpucache_invalidate();
|
||||
ci->commit_discard_idcache();
|
||||
/* barrier to prevent reordering iram copy and BSS clearing,
|
||||
* because the BSS segment alias the IRAM copy.
|
||||
*/
|
||||
|
|
@ -56,7 +56,7 @@ enum codec_status codec_start(enum codec_entry_call_reason reason)
|
|||
/* Some parts of bss may be used via a no-cache alias (at least
|
||||
* portalplayer has this). If we don't clear the cache, those aliases
|
||||
* may read garbage */
|
||||
ci->cpucache_invalidate();
|
||||
ci->commit_dcache();
|
||||
}
|
||||
#endif /* CONFIG_PLATFORM */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue