arm: fix get_sp (missing return)
__get_sp is missing a return! I don't know how it ever worked. Use "bx lr" since it works in all cases (armp and thumb). Change-Id: I26011db333a8a5f96276be83e18da7507c501c38 Reviewed-on: http://gerrit.rockbox.org/206 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
This commit is contained in:
parent
bc41926b8f
commit
a54072e299
1 changed files with 1 additions and 0 deletions
|
@ -31,4 +31,5 @@ get_sp:
|
||||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||||
msr cpsr, r1 /* restore mode */
|
msr cpsr, r1 /* restore mode */
|
||||||
#endif
|
#endif
|
||||||
|
bx lr
|
||||||
.size __get_sp, . - __get_sp
|
.size __get_sp, . - __get_sp
|
||||||
|
|
Loading…
Reference in a new issue