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/plugins/lib/xxx2wav.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/plugins/lib/xxx2wav.h') diff --git a/apps/plugins/lib/xxx2wav.h b/apps/plugins/lib/xxx2wav.h index 2806eabf27..7e3afceaba 100644 --- a/apps/plugins/lib/xxx2wav.h +++ b/apps/plugins/lib/xxx2wav.h @@ -19,6 +19,15 @@ /* Various "helper functions" common to all the xxx2wav decoder plugins */ +#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 + /* the main data structure of the program */ typedef struct { int infile; -- cgit v1.2.3