summaryrefslogtreecommitdiff
path: root/apps/codecs/codec_crt0.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/codec_crt0.c')
-rw-r--r--apps/codecs/codec_crt0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/codec_crt0.c b/apps/codecs/codec_crt0.c
index 50a2d8b66a..e3c3321e54 100644
--- a/apps/codecs/codec_crt0.c
+++ b/apps/codecs/codec_crt0.c
@@ -45,7 +45,7 @@ enum codec_status codec_start(enum codec_entry_call_reason reason)
45 ci->memcpy(iramstart, iramcopy, iram_size); 45 ci->memcpy(iramstart, iramcopy, iram_size);
46 ci->memset(iedata, 0, ibss_size); 46 ci->memset(iedata, 0, ibss_size);
47 /* make the icache (if it exists) up to date with the new code */ 47 /* make the icache (if it exists) up to date with the new code */
48 ci->cpucache_invalidate(); 48 ci->commit_discard_idcache();
49 /* barrier to prevent reordering iram copy and BSS clearing, 49 /* barrier to prevent reordering iram copy and BSS clearing,
50 * because the BSS segment alias the IRAM copy. 50 * because the BSS segment alias the IRAM copy.
51 */ 51 */
@@ -56,7 +56,7 @@ enum codec_status codec_start(enum codec_entry_call_reason reason)
56 /* Some parts of bss may be used via a no-cache alias (at least 56 /* Some parts of bss may be used via a no-cache alias (at least
57 * portalplayer has this). If we don't clear the cache, those aliases 57 * portalplayer has this). If we don't clear the cache, those aliases
58 * may read garbage */ 58 * may read garbage */
59 ci->cpucache_invalidate(); 59 ci->commit_dcache();
60 } 60 }
61#endif /* CONFIG_PLATFORM */ 61#endif /* CONFIG_PLATFORM */
62 62