summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
28#define DRAMORIG 0x31000000 28#define DRAMORIG 0x31000000
29#define IRAMORIG 0x1000c000 29#define IRAMORIG 0x1000c000
30#define IRAMSIZE 0xc000 30#define IRAMSIZE 0xc000
31#elif defined(IAUDIO_X5)
32#define DRAMORIG 0x31000000
33#define IRAMORIG 0x1000c000
34#define IRAMSIZE 0xc000
31#elif defined(ARCH_IPOD) 35#elif defined(ARCH_IPOD)
32#define DRAMORIG 0x00000000 36#define DRAMORIG 0x00000000
33#define IRAMORIG 0x4000c000 37#define IRAMORIG 0x4000c000
@@ -57,7 +61,7 @@ OUTPUT_FORMAT(elf32-sh)
57MEMORY 61MEMORY
58{ 62{
59 PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH 63 PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
60#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101) 64#if defined(IRAMSIZE)
61 PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE 65 PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
62#endif 66#endif
63} 67}
@@ -88,7 +92,7 @@ SECTIONS
88 .data : 92 .data :
89 { 93 {
90 *(.data*) 94 *(.data*)
91#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101) 95#if defined(IRAMSIZE)
92 iramcopy = .; 96 iramcopy = .;
93#endif 97#endif
94 } > PLUGIN_RAM 98 } > PLUGIN_RAM
@@ -98,7 +102,7 @@ SECTIONS
98 *(.eh_frame) 102 *(.eh_frame)
99 } 103 }
100 104
101#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101) 105#if defined(IRAMSIZE)
102 .iram IRAMORIG : AT ( iramcopy) 106 .iram IRAMORIG : AT ( iramcopy)
103 { 107 {
104 iramstart = .; 108 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;
125#elif defined(IAUDIO_X5) 125#elif defined(IAUDIO_X5)
126#define DRAMORIG 0x31000000 + STUBOFFSET 126#define DRAMORIG 0x31000000 + STUBOFFSET
127#define IRAMORIG 0x10000000 127#define IRAMORIG 0x10000000
128#define IRAMSIZE 0x20000 128#define IRAMSIZE 0xc000
129#elif (CONFIG_CPU==PP5002) || (CONFIG_CPU==PP5020) 129#elif (CONFIG_CPU==PP5002) || (CONFIG_CPU==PP5020)
130#define DRAMORIG 0x00000000 + STUBOFFSET 130#define DRAMORIG 0x00000000 + STUBOFFSET
131#define IRAMORIG 0x40000000 131#define IRAMORIG 0x40000000