diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-01-13 16:08:17 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-01-21 18:39:19 +0100 |
commit | cdb28789ec3577659aabfc097a9918d304cdb769 (patch) | |
tree | 2f19b281999d8ef5be6143cd08b5096d0e3247af /apps/codecs | |
parent | 34b0311d0eb906bd801cc1e9a329ed211b81496f (diff) | |
download | rockbox-cdb28789ec3577659aabfc097a9918d304cdb769.tar.gz rockbox-cdb28789ec3577659aabfc097a9918d304cdb769.zip |
libmad: Fix section attrs for hosted platforms.
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/libmad/mad_iram.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/codecs/libmad/mad_iram.h b/apps/codecs/libmad/mad_iram.h index 92abf62416..ac0b64cca9 100644 --- a/apps/codecs/libmad/mad_iram.h +++ b/apps/codecs/libmad/mad_iram.h | |||
@@ -29,6 +29,12 @@ | |||
29 | 29 | ||
30 | #include "config.h" | 30 | #include "config.h" |
31 | 31 | ||
32 | #if (CONFIG_PLATFORM&PLATFORM_HOSTED) | ||
33 | #define ICODE_SECTION_MPA_ARM .text | ||
34 | #define IBSS_SECTION_MPA_ARM .bss | ||
35 | #define ICODE_ATTR_MPA_SYNTH | ||
36 | #define ICONST_ATTR_MPA_HUFFMAN | ||
37 | #else | ||
32 | /* Code performs slower in IRAM on PP502x and there is no space in | 38 | /* Code performs slower in IRAM on PP502x and there is no space in |
33 | mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for | 39 | mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for |
34 | codecs */ | 40 | codecs */ |
@@ -46,4 +52,6 @@ | |||
46 | #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR | 52 | #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR |
47 | #endif | 53 | #endif |
48 | 54 | ||
55 | #endif | ||
56 | |||
49 | #endif /* MAD_IRAM_H */ | 57 | #endif /* MAD_IRAM_H */ |