summaryrefslogtreecommitdiff
path: root/firmware/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/boot.lds')
-rw-r--r--firmware/boot.lds4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/boot.lds b/firmware/boot.lds
index c61a4c8..9493db7 100644
--- a/firmware/boot.lds
+++ b/firmware/boot.lds
@@ -8,7 +8,11 @@ OUTPUT_FORMAT(elf32-sh)
#endif
INPUT(crt0.o)
+#if MEMORYSIZE >= 32
+#define PLUGINSIZE 0xC0000
+#else
#define PLUGINSIZE 0x8000
+#endif
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE