From bac611868e499aadf58bfcc3a64e5c80eecf40bd Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 10 Apr 2009 17:00:23 +0000 Subject: FS#10114 - Sansa AMS : use IRAM for codecs on >2MB targets Rafaël Carré Activates IRAM for AMS Sansas to be used by codecs and core. Fixes Reboot-on-mp3 and gives speed up on codecs using IRAM in general. I've made a change: the core/codec ratio is 0x20000/0x30000 instead of 0x10000/0x40000, 0x30000 is way more than codecs currently use (0x14000 at max) and the core might need more than 0x10000. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20678 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/app.lds | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'firmware/target') diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds index 09844a1aab..7f37cc5d7c 100644 --- a/firmware/target/arm/as3525/app.lds +++ b/firmware/target/arm/as3525/app.lds @@ -22,14 +22,14 @@ STARTUP(target/arm/crt0.o) #include "cpu.h" -#define IRAMSIZE 0x50000 - #ifdef LOWMEM #define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGINSIZE -#define CODECORIG (IRAMORIG + IRAMSIZE - CODEC_SIZE) +#define CODECORIG (IRAMORIG + 0x50000 - CODEC_SIZE) +#define IRAMSIZE (0x50000 - CODEC_SIZE) #else #define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGINSIZE - CODECSIZE #define CODECORIG (ENDAUDIOADDR) +#define IRAMSIZE (0x20000) #endif #define IRAMORIG 0x0 @@ -48,11 +48,9 @@ STARTUP(target/arm/crt0.o) MEMORY { #ifdef LOWMEM - IRAM : ORIGIN = IRAMORIG, LENGTH = (IRAMSIZE - CODEC_SIZE) CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE -#else - IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE #endif + IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE } -- cgit v1.2.3