oops, forgot these need to be in data section

This commit is contained in:
Dave Murphy 2014-12-30 00:02:55 +00:00
parent 2ed782f5f3
commit 7e51b3888e

View File

@ -7,24 +7,26 @@
@--------------------------------------------------------------------------------- @---------------------------------------------------------------------------------
initSystem: initSystem:
@--------------------------------------------------------------------------------- @---------------------------------------------------------------------------------
adr r0, saved_lr ldr r0, =saved_lr
str lr, [r0] str lr, [r0]
str sp, [r0,#4] str sp, [r0,#4]
bl __ctru_initSystem bl __ctru_initSystem
ldr r0,=fake_heap_start ldr r0,=fake_heap_start
ldr sp, [r0] ldr sp, [r0]
ldr pc, saved_lr ldr r0, =saved_lr
ldr pc, [r0]
saved_lr:
.word 0
saved_stack:
.word 0
.global __ctru_exit .global __ctru_exit
.type __ctru_exit STT_FUNC .type __ctru_exit STT_FUNC
@--------------------------------------------------------------------------------- @---------------------------------------------------------------------------------
__ctru_exit: __ctru_exit:
@--------------------------------------------------------------------------------- @---------------------------------------------------------------------------------
ldr sp, saved_stack ldr r1, =saved_stack
ldr sp, [r1]
b __libctru_exit b __libctru_exit
.data
saved_lr:
.word 0
saved_stack:
.word 0