diff options
Diffstat (limited to 'src/target/firmware/board')
-rw-r--r-- | src/target/firmware/board/compal/macros.S | 2 | ||||
-rw-r--r-- | src/target/firmware/board/compal/ram.lds | 13 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/target/firmware/board/compal/macros.S b/src/target/firmware/board/compal/macros.S index 613e6bda..14ee6e6a 100644 --- a/src/target/firmware/board/compal/macros.S +++ b/src/target/firmware/board/compal/macros.S @@ -44,7 +44,7 @@ done_ramtext: .EQU I_BIT, 0x80 .EQU F_BIT, 0x40 -#define TOP_OF_RAM 0x083fff0 +#define TOP_OF_RAM 0x4000a000 #define FIQ_STACK_SIZE 1024 #define IRQ_STACK_SIZE 1024 diff --git a/src/target/firmware/board/compal/ram.lds b/src/target/firmware/board/compal/ram.lds index 342870dc..1bff82bd 100644 --- a/src/target/firmware/board/compal/ram.lds +++ b/src/target/firmware/board/compal/ram.lds @@ -11,19 +11,16 @@ ENTRY(_start) MEMORY { /* compal-loaded binary: our text, initialized data */ - LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00010000 + LRAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00005000 /* compal-loaded binary: our unitialized data, stacks, heap */ - IRAM (rw) : ORIGIN = 0x00810000, LENGTH = 0x00010000 + IRAM (rw) : ORIGIN = 0x40005000, LENGTH = 0x00005000 } SECTIONS { - . = 0x800000; + . = 0x40000000; /* romloader data section, contains passthru interrupt vectors */ - .compal.loader (NOLOAD) : { . = 0x100; } > LRAM - - /* image signature (prepended by osmocon according to phone type) */ - .compal.header (NOLOAD) : { . = 4; } > LRAM + .compal.loader (NOLOAD) : { . = 0x1400; } > LRAM /* initialization code */ . = ALIGN(4); @@ -34,7 +31,7 @@ SECTIONS } > LRAM /* exception vectors from 0x80001c to 0x800034 */ - .text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) { + .text.exceptions 0x4000001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) { KEEP(*(.text.exceptions)) * (.text.exceptions) . = ALIGN(4); |