summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-15 14:00:37 +0000
committerDave Chapman <dave@dchapman.com>2005-02-15 14:00:37 +0000
commite452383359dc25750b5bb90318fcf4269c4ec2d2 (patch)
tree945514f895bb55feb90e64b9425e8a04a9b6578b
parenta11bb63d1ed4715fad571cb388cc2b104edc52bb (diff)
downloadrockbox-e452383359dc25750b5bb90318fcf4269c4ec2d2.zip
rockbox-e452383359dc25750b5bb90318fcf4269c4ec2d2.tar.gz
rockbox-e452383359dc25750b5bb90318fcf4269c4ec2d2.tar.bz2
rockbox-e452383359dc25750b5bb90318fcf4269c4ec2d2.tar.xz
Increase PLUGINSIZE to 768k for devices with at least 32MB of RAM (currently only iRiver).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5952 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugins/plugin.lds4
-rw-r--r--firmware/app.lds4
-rw-r--r--firmware/boot.lds4
-rw-r--r--firmware/rom.lds4
5 files changed, 20 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))
diff --git a/firmware/app.lds b/firmware/app.lds
index edb259a..8e7dc02 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -100,7 +100,11 @@ _pluginbuf = 0;
+#if MEMORYSIZE >= 32
+#define PLUGINSIZE 0xC0000
+#else
#define PLUGINSIZE 0x8000
+#endif
#ifdef DEBUG
#define STUBOFFSET 0x10000
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
diff --git a/firmware/rom.lds b/firmware/rom.lds
index 4da1e24..749998b 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.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