diff options
author | amachronic <amachronic@protonmail.com> | 2021-04-05 13:21:42 +0100 |
---|---|---|
committer | amachronic <amachronic@protonmail.com> | 2021-04-06 17:27:09 +0100 |
commit | b5558c1cf968f0fcff072456408b14f130f29ce3 (patch) | |
tree | 333f75446e2e10e1152c22764e9a7f9d7a86ffcf /firmware/target/mips/ingenic_x1000/spl.lds | |
parent | 1b314502c838947a4f5b211ebf9814f39c7a3c9f (diff) | |
download | rockbox-b5558c1cf968f0fcff072456408b14f130f29ce3.tar.gz rockbox-b5558c1cf968f0fcff072456408b14f130f29ce3.zip |
x1000: place SPL's NAND bounce buffers in DRAM
This frees up 2 KiB in the SPL's memory map, leaving more room for code.
Change-Id: I01bbe2ab2905b2773a8b76d8c53e9f3d55bd040f
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 | } |