Skip to content
Snippets Groups Projects
Commit 9f2c7ac7 authored by Georgy Kirichenko's avatar Georgy Kirichenko Committed by Roman Tsisyk
Browse files

Fix arm build

Pass func address via asm immediate arg instead of literal constant.

Follow up #2103
parent 92bb45f4
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ __asm__(
"\tstr r0, [sp, #4]\n"
"\tstr r1, [sp, #0]\n"
"\tmov r7, sp\n"
"\tbl unw_getcontext_f\n"
"\tbl %2\n"
/* Old sp is returned via r0 */
"\tmov sp, r0\n"
"\tpop {r4-r11,lr}\n"
......@@ -260,7 +260,7 @@ __asm__(
"\tmov sp, x2\n"
/* Setup fisrst arg */
"\tmov x0, %0\n"
"\tbl unw_getcontext_f\n"
"\tbl %2\n"
/* Restore context (old sp in x0) */
"\tldp x19, x20, [x0, #16 * 0]\n"
"\tldp x21, x22, [x0, #16 * 1]\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment