From cdb28789ec3577659aabfc097a9918d304cdb769 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 13 Jan 2012 16:08:17 +0100 Subject: libmad: Fix section attrs for hosted platforms. --- apps/codecs/libmad/mad_iram.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ #include "config.h" +#if (CONFIG_PLATFORM&PLATFORM_HOSTED) +#define ICODE_SECTION_MPA_ARM .text +#define IBSS_SECTION_MPA_ARM .bss +#define ICODE_ATTR_MPA_SYNTH +#define ICONST_ATTR_MPA_HUFFMAN +#else /* Code performs slower in IRAM on PP502x and there is no space in mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for codecs */ @@ -46,4 +52,6 @@ #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR #endif +#endif + #endif /* MAD_IRAM_H */ -- cgit v1.2.3