summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/plugin.lds8
-rw-r--r--firmware/app.lds10
2 files changed, 13 insertions, 5 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 38e5808022..c0150055eb 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -14,14 +14,18 @@ OUTPUT_FORMAT(elf32-sh)
#define STUBOFFSET 0
#endif
-#if defined(IRIVER_H120) || defined(IRIVER_H300)
+#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300)
#define ARCH_IRIVER
#endif
-#ifdef ARCH_IRIVER
+#if defined(IRIVER_H120) || defined(IRIVER_H300)
#define DRAMORIG 0x31000000
#define IRAMORIG 0x10010000
#define IRAMSIZE 0x8000
+#elif defined(IRIVER_H100)
+#define DRAMORIG 0x30000000
+#define IRAMORIG 0x10010000
+#define IRAMSIZE 0x8000
#else
#define DRAMORIG 0x09000000 + STUBOFFSET
#endif
diff --git a/firmware/app.lds b/firmware/app.lds
index ee666d8cb3..5816f40d35 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -113,10 +113,14 @@ _pluginbuf = 0;
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE
-#if CONFIG_CPU == MCF5249
-#define DRAMORIG 0x31000000 + STUBOFFSET
-#define IRAMORIG 0x10000000
+#ifdef IRIVER_H100_SERIES
#define IRAMSIZE 0x10000
+#define IRAMORIG 0x10000000
+#ifdef IRIVER_H100
+#define DRAMORIG 0x30000000 + STUBOFFSET
+#else /* H120/H140 */
+#define DRAMORIG 0x31000000 + STUBOFFSET
+#endif
#else
#define DRAMORIG 0x09000000 + STUBOFFSET
#define IRAMORIG 0x0f000000