From 657fdf26f298a7a01bf20140af1a2f5444b9d700 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 10 Mar 2005 20:02:08 +0000 Subject: 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 --- apps/codecs/codec.h | 9 +++++++++ apps/codecs/libmad/synth.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'apps/codecs') 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 @@ #include "config.h" +#if CONFIG_CPU == MCF5249 && !defined(SIMULATOR) +#define ICODE_ATTR __attribute__ ((section(".icode"))) +#define IDATA_ATTR __attribute__ ((section(".idata"))) +#define USE_IRAM 1 +#else +#define ICODE_ATTR +#define IDATA_ATTR +#endif + #include /* 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, # endif static -mad_fixed_t const D[17][32] __attribute__ ((section(".idata"))) = { +mad_fixed_t const D[17][32] IDATA_ATTR = { # include "D.dat" }; -- cgit v1.2.3