From a54072e2992ad8b6fccdaf8e8062f37c53743be8 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 2 Apr 2012 15:15:01 +0200 Subject: [PATCH] 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 --- lib/unwarminder/get_sp.S | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/unwarminder/get_sp.S b/lib/unwarminder/get_sp.S index 29356b3ec3..dfab11605f 100644 --- a/lib/unwarminder/get_sp.S +++ b/lib/unwarminder/get_sp.S @@ -31,4 +31,5 @@ get_sp: #if (CONFIG_PLATFORM & PLATFORM_NATIVE) msr cpsr, r1 /* restore mode */ #endif + bx lr .size __get_sp, . - __get_sp