summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-21 12:25:40 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-21 12:25:40 +0000
commit7664a4f7e098c7d349cb0cd75ce48b10cfd261fd (patch)
treec252be9a3e4f0415c6b0390fb018cb9639850119
parent1b383a9745dbe941508bbc80b7c030eb759c05c1 (diff)
downloadrockbox-7664a4f7e098c7d349cb0cd75ce48b10cfd261fd.tar.gz
rockbox-7664a4f7e098c7d349cb0cd75ce48b10cfd261fd.zip
Correct IRAM size for the iAudio X5 app
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9159 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/plugin.lds10
-rw-r--r--firmware/app.lds2
2 files changed, 8 insertions, 4 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index d4b3a1041e..010a75ed13 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -28,6 +28,10 @@ OUTPUT_FORMAT(elf32-sh)
#define DRAMORIG 0x31000000
#define IRAMORIG 0x1000c000
#define IRAMSIZE 0xc000
+#elif defined(IAUDIO_X5)
+#define DRAMORIG 0x31000000
+#define IRAMORIG 0x1000c000
+#define IRAMSIZE 0xc000
#elif defined(ARCH_IPOD)
#define DRAMORIG 0x00000000
#define IRAMORIG 0x4000c000
@@ -57,7 +61,7 @@ OUTPUT_FORMAT(elf32-sh)
MEMORY
{
PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
-#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101)
+#if defined(IRAMSIZE)
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
#endif
}
@@ -88,7 +92,7 @@ SECTIONS
.data :
{
*(.data*)
-#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101)
+#if defined(IRAMSIZE)
iramcopy = .;
#endif
} > PLUGIN_RAM
@@ -98,7 +102,7 @@ SECTIONS
*(.eh_frame)
}
-#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101)
+#if defined(IRAMSIZE)
.iram IRAMORIG : AT ( iramcopy)
{
iramstart = .;
diff --git a/firmware/app.lds b/firmware/app.lds
index adbefffb5e..0d7c191660 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -125,7 +125,7 @@ _pluginbuf = 0;
#elif defined(IAUDIO_X5)
#define DRAMORIG 0x31000000 + STUBOFFSET
#define IRAMORIG 0x10000000
-#define IRAMSIZE 0x20000
+#define IRAMSIZE 0xc000
#elif (CONFIG_CPU==PP5002) || (CONFIG_CPU==PP5020)
#define DRAMORIG 0x00000000 + STUBOFFSET
#define IRAMORIG 0x40000000