diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-12 01:25:19 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-12 01:25:19 +0000 |
commit | 0978026ddafad4a2d021064c740985fb4d153cca (patch) | |
tree | a0b9d3a9b3e93bf143bafb5ff3fd3ca577b1e1f2 | |
parent | 76b257fd40217013b3107148090c2062f06097e5 (diff) | |
download | rockbox-0978026ddafad4a2d021064c740985fb4d153cca.tar.gz rockbox-0978026ddafad4a2d021064c740985fb4d153cca.zip |
Rombox now properly uses all available DRAM for 8 MB builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5560 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/rom.lds | 22 |
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 @@ | |||
3 | ENTRY(start) | 3 | ENTRY(start) |
4 | OUTPUT_FORMAT(elf32-sh) | 4 | OUTPUT_FORMAT(elf32-sh) |
5 | INPUT(crt0.o) | 5 | INPUT(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 | |||
6 | MEMORY | 18 | MEMORY |
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 | } |
12 | SECTIONS | 24 | SECTIONS |
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 | } |