targets/gba: make linker script cleaner

Make it clearer where the stack is located. Additionally, get the heap
to work (the GC needs to have _stack_top defined to work correctly).
This commit is contained in:
Ayke van Laethem
2020-01-06 11:48:09 +01:00
committed by Ron Evans
parent a9b2d8c294
commit f14127be76
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -22,10 +22,10 @@ start_vector:
mov r0, #0x12 // Switch to IRQ Mode
msr cpsr, r0
ldr sp, =__sp_irq // Set IRQ stack
ldr sp, =_stack_top_irq // Set IRQ stack
mov r0, #0x1f // Switch to System Mode
msr cpsr, r0
ldr sp, =__sp_usr // Set user stack
ldr sp, =_stack_top // Set user stack
// Jump to user code (switching to Thumb mode)
ldr r3, =main