summaryrefslogtreecommitdiffstats
path: root/firmware/rom.lds
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-12 01:25:19 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-12 01:25:19 +0000
commit0978026ddafad4a2d021064c740985fb4d153cca (patch)
treea0b9d3a9b3e93bf143bafb5ff3fd3ca577b1e1f2 /firmware/rom.lds
parent76b257fd40217013b3107148090c2062f06097e5 (diff)
downloadrockbox-0978026ddafad4a2d021064c740985fb4d153cca.tar.gz
rockbox-0978026ddafad4a2d021064c740985fb4d153cca.tar.bz2
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
Diffstat (limited to 'firmware/rom.lds')
-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 @@
ENTRY(start)
OUTPUT_FORMAT(elf32-sh)
INPUT(crt0.o)
+
+#define PLUGINSIZE 0x8000
+
+#define DRAMORIG 0x09000000
+#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
+#define IRAMORIG 0x0f000000
+#define IRAMSIZE 0x1000
+#define FLASHORIG 0x02000000 + ROM_START
+#define FLASHSIZE 256K - ROM_START
+
+#define ENDADDR (DRAMORIG + DRAMSIZE)
+
MEMORY
{
- DRAM : ORIGIN = 0x09000000, LENGTH = (2 * 0x100000) - 0x8000
- IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000
- FLASH : ORIGIN = 0x02000000 + ROM_START, LENGTH = 256K - ROM_START
+ DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
+ IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
+ FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
}
SECTIONS
{
@@ -76,12 +88,12 @@ SECTIONS
_mp3buffer = .;
} > DRAM
- .mp3end (0x09000000 + (2 * 0x100000) - 0x8000):
+ .mp3end ENDADDR:
{
_mp3end = .;
} > DRAM
- .plugin (0x09000000 + (2 * 0x100000) - 0x8000):
+ .plugin ENDADDR:
{
_pluginbuf = .;
}