From d2456b44f73e6a1310d8dc2c98db92364b70e793 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 3 Jul 2005 14:05:12 +0000 Subject: Centralised the ICODE_ATTR and IDATA_ATTR #defines. Renamed some musepack and rockboy headers to avoid clashes with rockbox headers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6991 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'firmware') diff --git a/firmware/export/config.h b/firmware/export/config.h index 61c9899762..7de52c6e66 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -112,4 +112,16 @@ #define CODEC_SIZE 0 #endif +/* IRAM usage */ +#if !defined(SIMULATOR) && /* Not for simulators */ \ + (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ + (CONFIG_CPU == MCF5249)) /* Coldfire: core, plugins, codecs */ +#define ICODE_ATTR __attribute__ ((section(".icode"))) +#define IDATA_ATTR __attribute__ ((section(".idata"))) +#define USE_IRAM +#else +#define ICODE_ATTR +#define IDATA_ATTR +#endif + #endif -- cgit v1.2.3