diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-30 20:47:53 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-30 20:47:53 +0000 |
commit | da16248e47901c826a90291d2bb2a7aae78b209a (patch) | |
tree | fcc2a1944dd1b543e21346b46f50252ffc27fb7c /apps/plugins/mp3_encoder.c | |
parent | a1997c13c168beeb41bf2f5b814115cdd5cb574c (diff) | |
download | rockbox-da16248e47901c826a90291d2bb2a7aae78b209a.tar.gz rockbox-da16248e47901c826a90291d2bb2a7aae78b209a.zip |
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
Diffstat (limited to 'apps/plugins/mp3_encoder.c')
-rw-r--r-- | apps/plugins/mp3_encoder.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index d26500819b..392fc36d31 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c | |||
@@ -15,8 +15,6 @@ | |||
15 | #include "plugin.h" | 15 | #include "plugin.h" |
16 | 16 | ||
17 | 17 | ||
18 | PLUGIN_IRAM_DECLARE | ||
19 | |||
20 | #define SAMP_PER_FRAME 1152 | 18 | #define SAMP_PER_FRAME 1152 |
21 | #define SAMPL2 576 | 19 | #define SAMPL2 576 |
22 | #define SBLIMIT 32 | 20 | #define SBLIMIT 32 |
@@ -2504,8 +2502,6 @@ enum plugin_status plugin_start(const void* parameter) | |||
2504 | if (parameter == NULL) | 2502 | if (parameter == NULL) |
2505 | return PLUGIN_ERROR; | 2503 | return PLUGIN_ERROR; |
2506 | 2504 | ||
2507 | PLUGIN_IRAM_INIT(rb) | ||
2508 | |||
2509 | enc_buffer = rb->plugin_get_audio_buffer(&enc_buffer_size); | 2505 | enc_buffer = rb->plugin_get_audio_buffer(&enc_buffer_size); |
2510 | 2506 | ||
2511 | #ifdef CPU_COLDFIRE | 2507 | #ifdef CPU_COLDFIRE |