summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-10-10 20:53:46 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-10-10 20:53:46 +0000
commit752c91b50dcf36e4476cf89cceb6493e2fd4c586 (patch)
tree3fae108e1805c36297608cea4af3eaf1bf3d25a2
parentc599da333e0e69e75329f6b350611303ba644bf6 (diff)
downloadrockbox-752c91b50dcf36e4476cf89cceb6493e2fd4c586.tar.gz
rockbox-752c91b50dcf36e4476cf89cceb6493e2fd4c586.zip
Guard the cpucache_invalidate() with proper #ifdefs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28238 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/plugin_crt0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/plugin_crt0.c b/apps/plugins/plugin_crt0.c
index d86c5c367c..917ccb11a9 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)
90 90
91 /* zero out the bss section */ 91 /* zero out the bss section */
92 rb->memset(plugin_bss_start, 0, plugin_end_addr - plugin_bss_start); 92 rb->memset(plugin_bss_start, 0, plugin_end_addr - plugin_bss_start);
93
94#ifdef HAVE_CPUCACHE_INVALIDATE
93 /* Some parts of bss may be used via a no-cache alias (at least 95 /* Some parts of bss may be used via a no-cache alias (at least
94 * portalplayer has this). If we don't clear the cache, those aliases 96 * portalplayer has this). If we don't clear the cache, those aliases
95 * may read garbage */ 97 * may read garbage */
96 rb->cpucache_invalidate(); 98 rb->cpucache_invalidate();
99#endif /* HAVE_CPUCACHE_INVALIDATE */
97#endif 100#endif
98 101
99 /* we come back here if exit() was called or the plugin returned normally */ 102 /* we come back here if exit() was called or the plugin returned normally */