diff --git a/arch/arm/src/armv7-a/crt0.c b/arch/arm/src/armv7-a/crt0.c index 35fe970e0e..86a266986e 100644 --- a/arch/arm/src/armv7-a/crt0.c +++ b/arch/arm/src/armv7-a/crt0.c @@ -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) ); }