diff options
author | Dave Chapman <dave@dchapman.com> | 2005-02-15 14:00:37 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-02-15 14:00:37 +0000 |
commit | e452383359dc25750b5bb90318fcf4269c4ec2d2 (patch) | |
tree | 945514f895bb55feb90e64b9425e8a04a9b6578b | |
parent | a11bb63d1ed4715fad571cb388cc2b104edc52bb (diff) | |
download | rockbox-e452383359dc25750b5bb90318fcf4269c4ec2d2.tar.gz rockbox-e452383359dc25750b5bb90318fcf4269c4ec2d2.zip |
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.c | 4 | ||||
-rw-r--r-- | apps/plugins/plugin.lds | 4 | ||||
-rw-r--r-- | firmware/app.lds | 4 | ||||
-rw-r--r-- | firmware/boot.lds | 4 | ||||
-rw-r--r-- | firmware/rom.lds | 4 |
5 files changed, 20 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index b9b88164b6..cf5e8a0b93 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -62,7 +62,11 @@ | |||
62 | #define PREFIX(_x_) _x_ | 62 | #define PREFIX(_x_) _x_ |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #if MEMORYSIZE >= 32 | ||
66 | #define PLUGIN_BUFFER_SIZE 0xC0000 | ||
67 | #else | ||
65 | #define PLUGIN_BUFFER_SIZE 0x8000 | 68 | #define PLUGIN_BUFFER_SIZE 0x8000 |
69 | #endif | ||
66 | 70 | ||
67 | #ifdef SIMULATOR | 71 | #ifdef SIMULATOR |
68 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; | 72 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; |
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index bd49afc0d0..6737803c1f 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds | |||
@@ -20,7 +20,11 @@ OUTPUT_FORMAT(elf32-sh) | |||
20 | #define DRAMORIG 0x09000000 + STUBOFFSET | 20 | #define DRAMORIG 0x09000000 + STUBOFFSET |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | #if MEMORYSIZE >= 32 | ||
24 | #define PLUGIN_LENGTH 0xC0000 | ||
25 | #else | ||
23 | #define PLUGIN_LENGTH 0x8000 | 26 | #define PLUGIN_LENGTH 0x8000 |
27 | #endif | ||
24 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH | 28 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH |
25 | #define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE)) | 29 | #define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE)) |
26 | 30 | ||
diff --git a/firmware/app.lds b/firmware/app.lds index edb259aa2b..8e7dc02e27 100644 --- a/firmware/app.lds +++ b/firmware/app.lds | |||
@@ -100,7 +100,11 @@ _pluginbuf = 0; | |||
100 | 100 | ||
101 | 101 | ||
102 | 102 | ||
103 | #if MEMORYSIZE >= 32 | ||
104 | #define PLUGINSIZE 0xC0000 | ||
105 | #else | ||
103 | #define PLUGINSIZE 0x8000 | 106 | #define PLUGINSIZE 0x8000 |
107 | #endif | ||
104 | 108 | ||
105 | #ifdef DEBUG | 109 | #ifdef DEBUG |
106 | #define STUBOFFSET 0x10000 | 110 | #define STUBOFFSET 0x10000 |
diff --git a/firmware/boot.lds b/firmware/boot.lds index c61a4c836a..9493db7887 100644 --- a/firmware/boot.lds +++ b/firmware/boot.lds | |||
@@ -8,7 +8,11 @@ OUTPUT_FORMAT(elf32-sh) | |||
8 | #endif | 8 | #endif |
9 | INPUT(crt0.o) | 9 | INPUT(crt0.o) |
10 | 10 | ||
11 | #if MEMORYSIZE >= 32 | ||
12 | #define PLUGINSIZE 0xC0000 | ||
13 | #else | ||
11 | #define PLUGINSIZE 0x8000 | 14 | #define PLUGINSIZE 0x8000 |
15 | #endif | ||
12 | 16 | ||
13 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE | 17 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE |
14 | 18 | ||
diff --git a/firmware/rom.lds b/firmware/rom.lds index 4da1e24c60..749998b637 100644 --- a/firmware/rom.lds +++ b/firmware/rom.lds | |||
@@ -8,7 +8,11 @@ OUTPUT_FORMAT(elf32-sh) | |||
8 | #endif | 8 | #endif |
9 | INPUT(crt0.o) | 9 | INPUT(crt0.o) |
10 | 10 | ||
11 | #if MEMORYSIZE >= 32 | ||
12 | #define PLUGINSIZE 0xC0000 | ||
13 | #else | ||
11 | #define PLUGINSIZE 0x8000 | 14 | #define PLUGINSIZE 0x8000 |
15 | #endif | ||
12 | 16 | ||
13 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE | 17 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE |
14 | 18 | ||