From a420561bf8315f60c290ea41aaa7e80f410c592d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 8 May 2010 07:45:34 +0000 Subject: Gigabeat S: Reclaim about 800K of memory that was laying unused. Get rid of DEVBSS_ATTR for this target and implement as NOCACHEBSS_ATTR. Plugin and codec buffers move so all that is now incompatible (do full update). No version increase for plugins/codecs because the loader will reject them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25895 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plugin.lds | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'apps/plugins/plugin.lds') diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 1103810..fa8333c 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -30,17 +30,16 @@ OUTPUT_FORMAT(elf32-littlemips) #define CACHEALIGN_SIZE 16 #endif /* CPU_PP */ -#ifndef NOCACHE_BASE -/* Default to no offset if target doesn't define this */ -#define NOCACHE_BASE 0x00000000 -#endif +#if CONFIG_CPU==IMX31L +/* No fudges! */ +#include "imx31l.h" +#define DRAMSIZE ((MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGIN_BUFFER_SIZE \ + - CODEC_SIZE - QHARRAY_SIZE - FRAME_SIZE - TTB_SIZE) -#if CONFIG_CPU==DM320 || CONFIG_CPU==IMX31L +#elif CONFIG_CPU==DM320 /* Give this 1 meg to allow it to align to the MMU boundary */ -#if CONFIG_CPU==DM320 #ifndef LCD_NATIVE_WIDTH #define LCD_NATIVE_WIDTH LCD_WIDTH -#endif #ifndef LCD_NATIVE_HEIGHT #define LCD_NATIVE_HEIGHT LCD_HEIGHT @@ -156,6 +155,11 @@ OUTPUT_FORMAT(elf32-littlemips) #define DRAMORIG 0x09000000 + STUBOFFSET #endif +#ifndef NOCACHE_BASE +/* Default to no offset if target doesn't define this */ +#define NOCACHE_BASE 0x00000000 +#endif + #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE -- cgit v1.1