arch/armv7-a: replace SYS_signal_handler_return hardcode

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-02-22 16:32:27 +08:00 committed by Xiang Xiao
parent e0fabbfdd6
commit 0aa0022b12
1 changed files with 4 additions and 3 deletions

View File

@ -79,9 +79,10 @@ static void sig_trampoline(void)
" blx ip\n" /* Call the signal handler */
" pop {r2}\n" /* Recover LR in R2 */
" mov lr, r2\n" /* Restore LR */
" mov r0, #5\n" /* SYS_signal_handler_return */
" svc %0\n" /* Return from the SYSCALL */
::"i"(SYS_syscall)
" mov r0, %0\n" /* SYS_signal_handler_return */
" svc %1\n" /* Return from the SYSCALL */
::"i"(SYS_signal_handler_return),
"i"(SYS_syscall)
);
}