summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-03-10 20:02:08 +0000
committerJens Arnold <amiconn@rockbox.org>2005-03-10 20:02:08 +0000
commit657fdf26f298a7a01bf20140af1a2f5444b9d700 (patch)
treeede43783a45747b318608d649f4a425ecb8302fe /apps/codecs
parent64d3470541b76557dac7c6b35b15e821812b6f03 (diff)
downloadrockbox-657fdf26f298a7a01bf20140af1a2f5444b9d700.tar.gz
rockbox-657fdf26f298a7a01bf20140af1a2f5444b9d700.zip
Compile the simulators without special code & data sections. Fixes intermittent hangs/ crashes of mpa2wav.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6181 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/codec.h9
-rw-r--r--apps/codecs/libmad/synth.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/apps/codecs/codec.h b/apps/codecs/codec.h
index c00d2bda95..3b6e7796ee 100644
--- a/apps/codecs/codec.h
+++ b/apps/codecs/codec.h
@@ -21,6 +21,15 @@
21 21
22#include "config.h" 22#include "config.h"
23 23
24#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR)
25#define ICODE_ATTR __attribute__ ((section(".icode")))
26#define IDATA_ATTR __attribute__ ((section(".idata")))
27#define USE_IRAM 1
28#else
29#define ICODE_ATTR
30#define IDATA_ATTR
31#endif
32
24#include <sys/types.h> 33#include <sys/types.h>
25 34
26/* Get these functions 'out of the way' of the standard functions. Not doing 35/* Get these functions 'out of the way' of the standard functions. Not doing
diff --git a/apps/codecs/libmad/synth.c b/apps/codecs/libmad/synth.c
index 2d212c091f..166e3d9f3a 100644
--- a/apps/codecs/libmad/synth.c
+++ b/apps/codecs/libmad/synth.c
@@ -542,7 +542,7 @@ void dct32(mad_fixed_t const in[32], unsigned int slot,
542# endif 542# endif
543 543
544static 544static
545mad_fixed_t const D[17][32] __attribute__ ((section(".idata"))) = { 545mad_fixed_t const D[17][32] IDATA_ATTR = {
546# include "D.dat" 546# include "D.dat"
547}; 547};
548 548