GUIDINGLI edited a comment on pull request #5590: URL: https://github.com/apache/incubator-nuttx/pull/5590#issuecomment-1048648627
Can you revert this patch, and have a try ? ``` commit e0fabbfdd6a55510eae265472fd992aba1c0b588 Author: chao.an <[email protected]> Date: Tue Feb 22 15:25:56 2022 +0800 arch/arm: replace SYS_syscall_return hardcode from syscall Signed-off-by: chao.an <[email protected]> diff --git a/arch/arm/src/armv7-m/arm_svcall.c b/arch/arm/src/armv7-m/arm_svcall.c index 6119ee6297..1330dc3a81 100644 --- a/arch/arm/src/armv7-m/arm_svcall.c +++ b/arch/arm/src/armv7-m/arm_svcall.c @@ -103,8 +103,9 @@ static void dispatch_syscall(void) " ldr r2, [sp, #16]\n" /* Restore (orig_SP - new_SP) value */ " add sp, sp, r2\n" /* Restore SP */ " mov r2, r0\n" /* R2=Save return value in R2 */ - " mov r0, #3\n" /* R0=SYS_syscall_return */ - " svc %0\n"::"i"(SYS_syscall) /* Return from the SYSCALL */ + " mov r0, %0\n" /* R0=SYS_syscall_return */ + " svc %1\n"::"i"(SYS_syscall_return), + "i"(SYS_syscall) /* Return from the SYSCALL */ ); } #endif ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
