diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-04-20 20:44:39 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-04-20 20:44:39 +0000 |
commit | bd97654fa47dfb1421ff04836062c45d5e043ed4 (patch) | |
tree | 8fc3e588b4fb74f8f8d20744856f56667c9b3fdc /apps | |
parent | 1ab19d0b9bd94534516dfd88effe22a8f3d5aa3e (diff) |
Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20762 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/plugin.lds | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index d2a924f812..9a65fd5e4a 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -54,6 +54,12 @@ OUTPUT_FORMAT(elf32-littlemips) #endif #endif + /* default to full RAM (minus codecs&plugins) unless specified otherwise */ +#ifndef DRAMSIZE +#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE +#endif + + #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300) #define ARCH_IRIVER #endif @@ -124,6 +130,7 @@ OUTPUT_FORMAT(elf32-littlemips) #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE + #ifndef CODEC_ORIGIN /* targets can specify another origin */ #define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE)) #endif |