From da16248e47901c826a90291d2bb2a7aae78b209a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 30 Aug 2010 20:47:53 +0000 Subject: Plugins: modify IRAM copying code Move to plugin_crt0.c, plugins don't need PLUGIN_IRAM_* macros anymore IRAM is no longered zeroed before copying (as it is at the same address than BSS) -> Fix FS#11581 Use cpucache_invalidate() (and not cpucache_flush), needed for self-modifying code on cached IRAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27948 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pitch_detector.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/plugins/pitch_detector.c') diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index 22e8f75..2b80f5c 100644 --- a/apps/plugins/pitch_detector.c +++ b/apps/plugins/pitch_detector.c @@ -69,8 +69,6 @@ #include "pluginbitmaps/pitch_notes.h" -PLUGIN_IRAM_DECLARE - /* Some fixed point calculation stuff */ typedef int32_t fixed_data; struct _fixed @@ -1056,12 +1054,10 @@ static void init_everything(void) /* Disable all talking before initializing IRAM */ rb->talk_disable(true); - PLUGIN_IRAM_INIT(rb); - load_settings(); rb->storage_sleep(); - /* Stop all playback (if no IRAM, otherwise IRAM_INIT would have) */ + /* Stop all playback */ rb->plugin_get_audio_buffer(NULL); /* --------- Init the audio recording ----------------- */ -- cgit v1.1