arch/armv7-a: replace SYS_signal_handler_return hardcode
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
e0fabbfdd6
commit
0aa0022b12
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue