xiaoxiang781216 commented on a change in pull request #3626: URL: https://github.com/apache/incubator-nuttx/pull/3626#discussion_r638416602
########## File path: arch/arm/src/armv6-m/svcall.h ########## @@ -124,6 +116,17 @@ #define SYS_signal_handler_return (7) #endif /* CONFIG_BUILD_PROTECTED */ + +/* SYS call 5: + * + * void up_pthread_start(pthread_startroutine_t startup, + * pthread_startroutine_t entrypt, pthread_addr_t arg) + * noreturn_function + */ + +#define SYS_pthread_start (5) Review comment: But I saw all syscall handler e.g.: https://github.com/apache/incubator-nuttx/pull/3626/files#diff-0f751c458200754b097958f7d3dd7ef9f8ac93d1ad4b4ea22ef61dffff311873R346-R352 add swich/case to handle SYS_pthread_exit. As my unsterstanding, both syscall is required: 1. Userspace issue SYS_nx_pthread_exit to trigger the thread exit process 2. Kernel issue SYS_pthread_exit to switch back to userspace and then repeat step 1. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org