diff options
Diffstat (limited to 'firmware/app.lds')
| -rw-r--r-- | firmware/app.lds | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/firmware/app.lds b/firmware/app.lds index 46a6ca7..34ab1ad 100644 --- a/firmware/app.lds +++ b/firmware/app.lds @@ -2,15 +2,17 @@ ENTRY(start) OUTPUT_FORMAT(elf32-sh) INPUT(crt0.o) +#define PLUGINSIZE 0x8000 + #ifdef DEBUG -#define DRAMSIZE 0x1f0000 +#define DRAMSIZE 0x1f0000 - PLUGINSIZE #define ORIGADDR 0x09010000 -#define ENDADDR 0x09200000 + #else -#define DRAMSIZE (MEMORYSIZE * 0x100000) +#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE #define ORIGADDR 0x09000000 -#define ENDADDR (ORIGADDR + DRAMSIZE) #endif +#define ENDADDR (ORIGADDR + DRAMSIZE) MEMORY { @@ -91,6 +93,11 @@ SECTIONS _topramend = .; } > DRAM + .plugin ENDADDR: + { + _pluginbuf = .; + } + .iram 0xf000000 : AT ( _iramcopy ) { _iramstart = .; |