From: Dave Murphy Date: Tue, 30 Dec 2014 00:02:55 +0000 (+0000) Subject: oops, forgot these need to be in data section X-Git-Tag: v0.3.0~21 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=7e51b3888e67d47377287b449fd49cd81e8f1c68;p=corbenik%2Fctrulib.git oops, forgot these need to be in data section --- diff --git a/libctru/source/system/init_exit_Wrappers.s b/libctru/source/system/init_exit_Wrappers.s index 6155b64..8668ff7 100644 --- a/libctru/source/system/init_exit_Wrappers.s +++ b/libctru/source/system/init_exit_Wrappers.s @@ -7,24 +7,26 @@ @--------------------------------------------------------------------------------- initSystem: @--------------------------------------------------------------------------------- - adr r0, saved_lr + ldr r0, =saved_lr str lr, [r0] str sp, [r0,#4] bl __ctru_initSystem ldr r0,=fake_heap_start ldr sp, [r0] - ldr pc, saved_lr - -saved_lr: - .word 0 -saved_stack: - .word 0 - + ldr r0, =saved_lr + ldr pc, [r0] .global __ctru_exit .type __ctru_exit STT_FUNC @--------------------------------------------------------------------------------- __ctru_exit: @--------------------------------------------------------------------------------- - ldr sp, saved_stack + ldr r1, =saved_stack + ldr sp, [r1] b __libctru_exit + + .data +saved_lr: + .word 0 +saved_stack: + .word 0