Fix passing of sp in art_test_suspend
SP of caller was being passed to artCheckSuspendToCode, rather than
the SP following save frame creation. This led to the caller's
method* getting stepped on.
Change-Id: I644f2d6495d9274506a442c8a4a42985601ecb41
diff --git a/src/runtime_support_asm.S b/src/runtime_support_asm.S
index 4727fcf..2017c40 100644
--- a/src/runtime_support_asm.S
+++ b/src/runtime_support_asm.S
@@ -428,8 +428,8 @@
cmp r0, #0 @ check Thread::Current()->suspend_count_ == 0
bxeq rLR @ return if suspend_count_ == 0
mov r0, rSELF
- mov r1, sp
SETUP_REF_ONLY_CALLEE_SAVE_FRAME @ save callee saves for stack crawl
+ mov r1, sp
bl artTestSuspendFromCode @ (Thread*, SP)
RESTORE_REF_ONLY_CALLEE_SAVE_FRAME_AND_RETURN