forked from len0rd/rockbox
Guard the cpucache_invalidate() with proper #ifdefs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28238 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c599da333e
commit
752c91b50d
1 changed files with 3 additions and 0 deletions
|
@ -90,10 +90,13 @@ enum plugin_status plugin__start(const void *param)
|
|||
|
||||
/* zero out the bss section */
|
||||
rb->memset(plugin_bss_start, 0, plugin_end_addr - plugin_bss_start);
|
||||
|
||||
#ifdef HAVE_CPUCACHE_INVALIDATE
|
||||
/* 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 */
|
||||
rb->cpucache_invalidate();
|
||||
#endif /* HAVE_CPUCACHE_INVALIDATE */
|
||||
#endif
|
||||
|
||||
/* we come back here if exit() was called or the plugin returned normally */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue