From 18efbef3a62a45162123ac31c6cf9c6743992ce3 Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 24 Jun 2008 07:38:35 +0000 Subject: [PATCH] D2: Editing config.h wasn't enough to fully disable IRAM - also disable it in *.lds for a crash fix and further 100% increase in codec performance. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17779 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plugin.lds | 6 ++++-- firmware/target/arm/tcc780x/app.lds | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 536f76119..418e29fc9 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -82,8 +82,10 @@ OUTPUT_FORMAT(elf32-sh) #define IRAM DRAM #elif defined(CPU_TCC780X) #define DRAMORIG 0x20000000 -#define IRAMORIG 0x1000c000 -#define IRAMSIZE 0xc000 +/*#define IRAMORIG 0x1000c000 +#define IRAMSIZE 0xc000*/ +#define IRAM DRAM +#define IRAMSIZE 0 #else #define DRAMORIG 0x09000000 + STUBOFFSET #endif diff --git a/firmware/target/arm/tcc780x/app.lds b/firmware/target/arm/tcc780x/app.lds index 97ae2c2e8..d62204a9a 100644 --- a/firmware/target/arm/tcc780x/app.lds +++ b/firmware/target/arm/tcc780x/app.lds @@ -115,7 +115,8 @@ SECTIONS *(.icode) . = ALIGN(0x4); _iramend = .; - } > SRAM AT> DRAM + /* } > SRAM AT> DRAM */ + } > DRAM _iramcopy = LOADADDR(.iram); @@ -125,7 +126,8 @@ SECTIONS *(.ibss) . = ALIGN(0x4); _iend = .; - } > SRAM + /* } > SRAM */ + } > DRAM .stack : { @@ -133,7 +135,8 @@ SECTIONS stackbegin = .; . += 0x2000; stackend = .; - } > SRAM + /* } > SRAM */ + } > DRAM .bss : { -- 2.11.4.GIT