diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-08 07:45:34 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-08 07:45:34 +0000 |
commit | a420561bf8315f60c290ea41aaa7e80f410c592d (patch) | |
tree | 4f8f2e5e8ad8f613d3647a0239e8c40ed8b3cf8c /apps | |
parent | 7f3b3494a6a4198c59e07d54ad979b7a764250b6 (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/plugin.lds | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 11038109e1..fa8333ce9b 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 |