diff options
Diffstat (limited to 'firmware/target/arm/as3525/boot.lds')
-rw-r--r-- | firmware/target/arm/as3525/boot.lds | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/boot.lds b/firmware/target/arm/as3525/boot.lds index 7a13d67a43..a98763e8f6 100644 --- a/firmware/target/arm/as3525/boot.lds +++ b/firmware/target/arm/as3525/boot.lds | |||
@@ -1,18 +1,22 @@ | |||
1 | #include "config.h" | 1 | #include "config.h" |
2 | #include "cpu.h" | ||
2 | 3 | ||
3 | ENTRY(start) | 4 | ENTRY(start) |
4 | OUTPUT_FORMAT(elf32-littlearm) | 5 | OUTPUT_FORMAT(elf32-littlearm) |
5 | OUTPUT_ARCH(arm) | 6 | OUTPUT_ARCH(arm) |
6 | STARTUP(target/arm/crt0.o) | 7 | STARTUP(target/arm/crt0.o) |
7 | 8 | ||
8 | #define DRAMSIZE (MEMORYSIZE * 0x100000) | 9 | /* |
10 | No need for DRAM in our bootloader | ||
11 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - TTB_SIZE | ||
9 | #define DRAMORIG 0x30000000 | 12 | #define DRAMORIG 0x30000000 |
10 | #define IRAMORIG 0 | 13 | */ |
14 | #define IRAMORIG 0x81000000 | ||
11 | #define IRAMSIZE 0x50000 | 15 | #define IRAMSIZE 0x50000 |
12 | 16 | ||
13 | MEMORY | 17 | MEMORY |
14 | { | 18 | { |
15 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | 19 | /*DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE*/ |
16 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 20 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE |
17 | } | 21 | } |
18 | 22 | ||