From 70353f4eb01cdb8eab92dd9b1966370510c48933 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Fri, 17 Apr 2009 15:56:17 +0000 Subject: Fix by Rafaël Carré. Puts core functions into IRAM on AMS targets with <2MB of RAM. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20723 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config.h b/firmware/export/config.h index 17b3c1cdea..efaf326384 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -626,7 +626,8 @@ Lyre prototype 1*/ (((CONFIG_CPU == SH7034) && !defined(PLUGIN)) || /* SH1 archos: core only */ \ defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \ defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \ - (CONFIG_CPU == AS3525 && MEMORYSIZE > 2) || \ + (CONFIG_CPU == AS3525 && MEMORYSIZE > 2) || /* AS3525 +2MB: core, plugins, codecs */ \ + (CONFIG_CPU == AS3525 && MEMORYSIZE <= 2 && !defined(PLUGIN) && !defined(CODEC)) || /* AS3525 2MB:core only */ \ (CONFIG_CPU == PNX0101) || \ (CONFIG_CPU == S5L8700)) /* Samsung S5L8700: core, plugins, codecs */ #define ICODE_ATTR __attribute__ ((section(".icode"))) @@ -634,7 +635,7 @@ Lyre prototype 1*/ #define IDATA_ATTR __attribute__ ((section(".idata"))) #define IBSS_ATTR __attribute__ ((section(".ibss"))) #define USE_IRAM -#if CONFIG_CPU != SH7034 +#if CONFIG_CPU != SH7034 && (CONFIG_CPU != AS3525 || MEMORYSIZE > 2) #define PLUGIN_USE_IRAM #endif #if defined(CPU_ARM) -- cgit v1.2.3