diff options
-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 |