summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/rom.lds22
1 files changed, 17 insertions, 5 deletions
diff --git a/firmware/rom.lds b/firmware/rom.lds
index a759ed2f9f..aee179b9e7 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.lds
@@ -3,11 +3,23 @@
3ENTRY(start) 3ENTRY(start)
4OUTPUT_FORMAT(elf32-sh) 4OUTPUT_FORMAT(elf32-sh)
5INPUT(crt0.o) 5INPUT(crt0.o)
6
7#define PLUGINSIZE 0x8000
8
9#define DRAMORIG 0x09000000
10#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
11#define IRAMORIG 0x0f000000
12#define IRAMSIZE 0x1000
13#define FLASHORIG 0x02000000 + ROM_START
14#define FLASHSIZE 256K - ROM_START
15
16#define ENDADDR (DRAMORIG + DRAMSIZE)
17
6MEMORY 18MEMORY
7{ 19{
8 DRAM : ORIGIN = 0x09000000, LENGTH = (2 * 0x100000) - 0x8000 20 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
9 IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 21 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
10 FLASH : ORIGIN = 0x02000000 + ROM_START, LENGTH = 256K - ROM_START 22 FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
11} 23}
12SECTIONS 24SECTIONS
13{ 25{
@@ -76,12 +88,12 @@ SECTIONS
76 _mp3buffer = .; 88 _mp3buffer = .;
77 } > DRAM 89 } > DRAM
78 90
79 .mp3end (0x09000000 + (2 * 0x100000) - 0x8000): 91 .mp3end ENDADDR:
80 { 92 {
81 _mp3end = .; 93 _mp3end = .;
82 } > DRAM 94 } > DRAM
83 95
84 .plugin (0x09000000 + (2 * 0x100000) - 0x8000): 96 .plugin ENDADDR:
85 { 97 {
86 _pluginbuf = .; 98 _pluginbuf = .;
87 } 99 }