From bd97654fa47dfb1421ff04836062c45d5e043ed4 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 20 Apr 2009 20:44:39 +0000 Subject: Fix red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20762 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plugin.lds | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/plugins/plugin.lds') diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index d2a924f..9a65fd5 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 -- cgit v1.1