summaryrefslogtreecommitdiff
path: root/firmware/boot.lds
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-11-16 23:15:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-11-16 23:15:59 +0000
commitdf0e5effc550db484ca0d377b9f3547fed27cd66 (patch)
treed54a173927a2091263787f62c9c59fe0c0f57aaa /firmware/boot.lds
parent59825952f3d98d29e03b094642655968d7abcc02 (diff)
downloadrockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.tar.gz
rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.zip
Cleaned up bootloader linker control file and added the H300 target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/boot.lds')
-rw-r--r--firmware/boot.lds39
1 files changed, 15 insertions, 24 deletions
diff --git a/firmware/boot.lds b/firmware/boot.lds
index 2d320e2b81..d785fdcc2e 100644
--- a/firmware/boot.lds
+++ b/firmware/boot.lds
@@ -12,13 +12,7 @@ OUTPUT_FORMAT(elf32-sh)
12INPUT(crt0.o) 12INPUT(crt0.o)
13#endif 13#endif
14 14
15#if MEMORYSIZE >= 32 15#define DRAMSIZE (MEMORYSIZE * 0x100000)
16#define PLUGINSIZE 0xC0000
17#else
18#define PLUGINSIZE 0x8000
19#endif
20
21#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
22 16
23#ifdef IRIVER_H100_SERIES 17#ifdef IRIVER_H100_SERIES
24#define DRAMORIG 0x31000000 18#define DRAMORIG 0x31000000
@@ -26,6 +20,12 @@ INPUT(crt0.o)
26#define IRAMSIZE 0x18000 20#define IRAMSIZE 0x18000
27#define FLASHORIG 0x001f0000 21#define FLASHORIG 0x001f0000
28#define FLASHSIZE 2M 22#define FLASHSIZE 2M
23#elif defined(IRIVER_H300_SERIES)
24#define DRAMORIG 0x31000000
25#define IRAMORIG 0x10000000
26#define IRAMSIZE 0x18000
27#define FLASHORIG 0x003f0000
28#define FLASHSIZE 4M
29#elif CONFIG_CPU == PP5020 29#elif CONFIG_CPU == PP5020
30#define DRAMORIG 0x10000000 30#define DRAMORIG 0x10000000
31#define IRAMORIG 0x40000000 31#define IRAMORIG 0x40000000
@@ -40,8 +40,6 @@ INPUT(crt0.o)
40#define FLASHSIZE 256K - ROM_START 40#define FLASHSIZE 256K - ROM_START
41#endif 41#endif
42 42
43#define ENDADDR (IRAMORIG + IRAMSIZE)
44
45#if CONFIG_CPU!=PP5020 43#if CONFIG_CPU!=PP5020
46MEMORY 44MEMORY
47{ 45{
@@ -141,29 +139,22 @@ SECTIONS
141 stackend = .; 139 stackend = .;
142 } > IRAM 140 } > IRAM
143 141
142#ifdef IRIVER_H300_SERIES
143 .bss DRAMORIG+0x1000000:
144#else
144 .bss : 145 .bss :
146#endif
145 { 147 {
146 _edata = .; 148 _edata = .;
147 *(.ibss) 149 *(.ibss)
148 *(.bss) 150 *(.bss)
149 *(COMMON) 151 *(COMMON)
150 _end = .; 152 _end = .;
153#ifdef IRIVER_H300_SERIES
154 } > DRAM
155#else
151 } > IRAM 156 } > IRAM
157#endif
152 158
153 .mp3buf :
154 {
155 . = ALIGN(0x4);
156 _mp3buffer = .;
157 } > IRAM
158
159 .mp3end ENDADDR:
160 {
161 _mp3end = .;
162 } > IRAM
163
164 .plugin ENDADDR:
165 {
166 _pluginbuf = .;
167 }
168} 159}
169#endif 160#endif