diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2010-10-10 20:53:46 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2010-10-10 20:53:46 +0000 |
| commit | 752c91b50dcf36e4476cf89cceb6493e2fd4c586 (patch) | |
| tree | 3fae108e1805c36297608cea4af3eaf1bf3d25a2 /apps/plugins/plugin_crt0.c | |
| parent | c599da333e0e69e75329f6b350611303ba644bf6 (diff) | |
| download | rockbox-752c91b50dcf36e4476cf89cceb6493e2fd4c586.zip rockbox-752c91b50dcf36e4476cf89cceb6493e2fd4c586.tar.gz rockbox-752c91b50dcf36e4476cf89cceb6493e2fd4c586.tar.bz2 rockbox-752c91b50dcf36e4476cf89cceb6493e2fd4c586.tar.xz | |
Guard the cpucache_invalidate() with proper #ifdefs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28238 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/plugin_crt0.c')
| -rw-r--r-- | apps/plugins/plugin_crt0.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/plugin_crt0.c b/apps/plugins/plugin_crt0.c index d86c5c3..917ccb1 100644 --- a/apps/plugins/plugin_crt0.c +++ b/apps/plugins/plugin_crt0.c @@ -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 */ |