diff options
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 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 */ |