summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-08 07:45:34 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-08 07:45:34 +0000
commita420561bf8315f60c290ea41aaa7e80f410c592d (patch)
tree4f8f2e5e8ad8f613d3647a0239e8c40ed8b3cf8c /apps
parent7f3b3494a6a4198c59e07d54ad979b7a764250b6 (diff)
downloadrockbox-a420561bf8315f60c290ea41aaa7e80f410c592d.tar.gz
rockbox-a420561bf8315f60c290ea41aaa7e80f410c592d.zip
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.lds18
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)
30#define CACHEALIGN_SIZE 16 30#define CACHEALIGN_SIZE 16
31#endif /* CPU_PP */ 31#endif /* CPU_PP */
32 32
33#ifndef NOCACHE_BASE 33#if CONFIG_CPU==IMX31L
34/* Default to no offset if target doesn't define this */ 34/* No fudges! */
35#define NOCACHE_BASE 0x00000000 35#include "imx31l.h"
36#endif 36#define DRAMSIZE ((MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGIN_BUFFER_SIZE \
37 - CODEC_SIZE - QHARRAY_SIZE - FRAME_SIZE - TTB_SIZE)
37 38
38#if CONFIG_CPU==DM320 || CONFIG_CPU==IMX31L 39#elif CONFIG_CPU==DM320
39/* Give this 1 meg to allow it to align to the MMU boundary */ 40/* Give this 1 meg to allow it to align to the MMU boundary */
40#if CONFIG_CPU==DM320
41#ifndef LCD_NATIVE_WIDTH 41#ifndef LCD_NATIVE_WIDTH
42#define LCD_NATIVE_WIDTH LCD_WIDTH 42#define LCD_NATIVE_WIDTH LCD_WIDTH
43#endif
44 43
45#ifndef LCD_NATIVE_HEIGHT 44#ifndef LCD_NATIVE_HEIGHT
46#define LCD_NATIVE_HEIGHT LCD_HEIGHT 45#define LCD_NATIVE_HEIGHT LCD_HEIGHT
@@ -156,6 +155,11 @@ OUTPUT_FORMAT(elf32-littlemips)
156#define DRAMORIG 0x09000000 + STUBOFFSET 155#define DRAMORIG 0x09000000 + STUBOFFSET
157#endif 156#endif
158 157
158#ifndef NOCACHE_BASE
159/* Default to no offset if target doesn't define this */
160#define NOCACHE_BASE 0x00000000
161#endif
162
159#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE 163#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
160 164
161 165