summaryrefslogtreecommitdiff
path: root/apps/plugins/plugin.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r--apps/plugins/plugin.lds7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index d2a924f..9a65fd5 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -54,6 +54,12 @@ OUTPUT_FORMAT(elf32-littlemips)
#endif
#endif
+ /* default to full RAM (minus codecs&plugins) unless specified otherwise */
+#ifndef DRAMSIZE
+#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
+#endif
+
+
#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300)
#define ARCH_IRIVER
#endif
@@ -124,6 +130,7 @@ OUTPUT_FORMAT(elf32-littlemips)
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
+
#ifndef CODEC_ORIGIN /* targets can specify another origin */
#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
#endif