diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl.lds')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/spl.lds | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl.lds b/firmware/target/mips/ingenic_x1000/spl.lds index 2a0b6b3eaa..ab4a2720f3 100644 --- a/firmware/target/mips/ingenic_x1000/spl.lds +++ b/firmware/target/mips/ingenic_x1000/spl.lds | |||
@@ -5,13 +5,20 @@ OUTPUT_ARCH(MIPS) | |||
5 | ENTRY(_start) | 5 | ENTRY(_start) |
6 | STARTUP(target/mips/ingenic_x1000/crt0.o) | 6 | STARTUP(target/mips/ingenic_x1000/crt0.o) |
7 | 7 | ||
8 | #define DRAMORIG 0x80000000 | ||
9 | #define DRAMSIZE (MEMORYSIZE * 0x100000) | ||
10 | #define USED_DRAM 16K | ||
11 | |||
8 | /* TCSM is 16 KiB and is mapped starting at address 0xf4000000. | 12 | /* TCSM is 16 KiB and is mapped starting at address 0xf4000000. |
9 | * | 13 | * |
10 | * The SPL is loaded to TCSM + 0x1000. The area below that is stack space. | 14 | * The SPL is loaded to TCSM + 0x1000. The area below that is stack space. |
11 | * The first 2 KiB of SPL is just headers. The code begins at TCSM + 0x1800. | 15 | * The first 2 KiB of SPL is just headers. The code begins at TCSM + 0x1800. |
12 | * The maskrom will jump to that address (via jalr) after loading the SPL. | 16 | * The maskrom will jump to that address (via jalr) after loading the SPL. |
13 | */ | 17 | */ |
14 | MEMORY { TCSM : ORIGIN = 0xf4001800, LENGTH = 0x2800 } | 18 | MEMORY { |
19 | TCSM : ORIGIN = 0xf4001800, LENGTH = 0x2800 | ||
20 | DRAM : ORIGIN = DRAMORIG + DRAMSIZE - USED_DRAM, LENGTH = USED_DRAM | ||
21 | } | ||
15 | 22 | ||
16 | SECTIONS | 23 | SECTIONS |
17 | { | 24 | { |
@@ -44,4 +51,9 @@ SECTIONS | |||
44 | *(.scommon*); | 51 | *(.scommon*); |
45 | _bssend = .; | 52 | _bssend = .; |
46 | } > TCSM | 53 | } > TCSM |
54 | |||
55 | .sdram (NOLOAD) : | ||
56 | { | ||
57 | *(.sdram); | ||
58 | } > DRAM | ||
47 | } | 59 | } |