This is an automated email from the ASF dual-hosted git repository. aguettouche pushed a commit to branch feature/pthread-user in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit be0ff4dfe3c96c98a9b946b3c61b370be149e5bb Author: Gustavo Henrique Nihei <38959758+ghn-ce...@users.noreply.github.com> AuthorDate: Tue Jun 30 10:59:35 2020 -0600 Correct/Improve some comments Update arch/arm/src/armv6-m/arm_svcall.c Update libs/libc/pthread/pthread_create.c Update libs/libc/pthread/pthread_create.c Update sched/pthread/pthread_create.c Update sched/pthread/pthread_create.c Update libs/libc/pthread/pthread_create.c Update sched/pthread/pthread_create.c --- arch/arm/src/armv6-m/arm_svcall.c | 2 +- libs/libc/pthread/pthread_create.c | 6 +++--- sched/pthread/pthread_create.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/src/armv6-m/arm_svcall.c b/arch/arm/src/armv6-m/arm_svcall.c index 9d4a574..3485bfe 100644 --- a/arch/arm/src/armv6-m/arm_svcall.c +++ b/arch/arm/src/armv6-m/arm_svcall.c @@ -324,7 +324,7 @@ int arm_svcall(int irq, FAR void *context, FAR void *arg) regs[REG_EXC_RETURN] = EXC_RETURN_UNPRIVTHR; /* Change the parameter ordering to match the expectation of the - * useri space pthread_startup: + * user space pthread_startup: */ regs[REG_R0] = regs[REG_R2]; /* pthread entry */ diff --git a/libs/libc/pthread/pthread_create.c b/libs/libc/pthread/pthread_create.c index 9563016..d091333 100644 --- a/libs/libc/pthread/pthread_create.c +++ b/libs/libc/pthread/pthread_create.c @@ -34,8 +34,8 @@ * Name: pthread_startup * * Description: - * This function is the user-space, pthread startup function. Its purpose - * is to to catch the return from the pthread main function so that + * This function is the user space pthread startup function. Its purpose + * is to catch the return from the pthread main function so that * pthread_exit() can be called from user space * * Input Parameters: @@ -65,7 +65,7 @@ static void pthread_startup(pthread_startroutine_t entry, * Name: pthread_create * * Description: - * This function creates and activates a new thread with a specified + * This function creates and activates a new thread with specified * attributes. It is simply a wrapper around the nx_pthread_create system * call. * diff --git a/sched/pthread/pthread_create.c b/sched/pthread/pthread_create.c index 34a8bda..4768f43 100644 --- a/sched/pthread/pthread_create.c +++ b/sched/pthread/pthread_create.c @@ -75,7 +75,7 @@ static const char g_pthreadname[] = "<pthread>"; * Name: pthread_tcb_setup * * Description: - * This functions sets up parameters in the Task Control Block (TCB) in + * This function sets up parameters in the Task Control Block (TCB) in * preparation for starting a new thread. * * pthread_tcb_setup() is called from nxtask_init() and nxtask_start() to @@ -85,7 +85,7 @@ static const char g_pthreadname[] = "<pthread>"; * * Input Parameters: * tcb - Address of the new task's TCB - * startup - User-space pthread startup function + * startup - User space pthread startup function * arg - The argument to provide to the pthread on startup. * * Returned Value: @@ -213,7 +213,7 @@ static void pthread_start(void) * Name: nx_pthread_create * * Description: - * This function creates and activates a new thread with a specified + * This function creates and activates a new thread with specified * attributes. * * Input Parameters: