diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-28 21:12:11 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-28 21:12:11 +0000 |
commit | 91f572c3b5feff8311fbb8b930fafbe53cc2a530 (patch) | |
tree | e32e8936bbc10a54d0efac000c40f34f5a53ca94 /apps | |
parent | c9cb607a196ed2c20dafce331aadd755379aaa58 (diff) | |
download | rockbox-91f572c3b5feff8311fbb8b930fafbe53cc2a530.tar.gz rockbox-91f572c3b5feff8311fbb8b930fafbe53cc2a530.zip |
Iriver: Fix codec <-> plugin start address clash, leading to crashes when trying to run plugins while playing music.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6903 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/plugin.lds | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 3e624d6a0b..d0ddb78cbf 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds | |||
@@ -23,19 +23,22 @@ OUTPUT_FORMAT(elf32-sh) | |||
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE | 25 | #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE |
26 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE | ||
27 | #define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE)) | ||
28 | #define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE) | ||
29 | |||
26 | 30 | ||
27 | #ifdef CODEC | 31 | #ifdef CODEC |
28 | #define THIS_LENGTH CODEC_SIZE | 32 | #define THIS_LENGTH CODEC_SIZE |
33 | #define THIS_ORIGIN CODEC_ORIGIN | ||
29 | #else | 34 | #else |
30 | #define THIS_LENGTH PLUGIN_LENGTH | 35 | #define THIS_LENGTH PLUGIN_LENGTH |
36 | #define THIS_ORIGIN PLUGIN_ORIGIN | ||
31 | #endif | 37 | #endif |
32 | 38 | ||
33 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE | ||
34 | #define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE)) | ||
35 | |||
36 | MEMORY | 39 | MEMORY |
37 | { | 40 | { |
38 | PLUGIN_RAM : ORIGIN = PLUGIN_ORIGIN, LENGTH = THIS_LENGTH | 41 | PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH |
39 | #ifdef IRIVER_H100 | 42 | #ifdef IRIVER_H100 |
40 | PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 43 | PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE |
41 | #endif | 44 | #endif |