summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugins/plugin.lds4
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index b9b8816..cf5e8a0 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -62,7 +62,11 @@
#define PREFIX(_x_) _x_
#endif
+#if MEMORYSIZE >= 32
+#define PLUGIN_BUFFER_SIZE 0xC0000
+#else
#define PLUGIN_BUFFER_SIZE 0x8000
+#endif
#ifdef SIMULATOR
static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE];
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index bd49afc..6737803 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -20,7 +20,11 @@ OUTPUT_FORMAT(elf32-sh)
#define DRAMORIG 0x09000000 + STUBOFFSET
#endif
+#if MEMORYSIZE >= 32
+#define PLUGIN_LENGTH 0xC0000
+#else
#define PLUGIN_LENGTH 0x8000
+#endif
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH
#define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE))