From e452383359dc25750b5bb90318fcf4269c4ec2d2 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 15 Feb 2005 14:00:37 +0000 Subject: 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 --- firmware/app.lds | 4 ++++ firmware/boot.lds | 4 ++++ firmware/rom.lds | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'firmware') 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; +#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 c61a4c836a..9493db7887 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 4da1e24c60..749998b637 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 -- cgit v1.2.3