@@ -347,6 +347,8 @@ void set_thread_registers(tcb_t *thread, cpu_regs_t *regs)
347347 * Thread creation routine
348348 *
349349 * @param args Aguments to create the thread
350+ *
351+ * @return TCB of the newly created thread.
350352 */
351353tcb_t * thread_create (clone_args_t * args )
352354{
@@ -402,9 +404,8 @@ tcb_t *thread_create(clone_args_t *args)
402404 * args -> parent_tid = tcb -> tid ;
403405 }
404406
405- if (args -> flags & CLONE_CHILD_CLEARTID ) {
407+ if (args -> flags & CLONE_CHILD_CLEARTID )
406408 tcb -> child_clear_tid = (addr_t ) args -> child_tid ;
407- }
408409
409410 local_irq_restore (flags );
410411
@@ -418,6 +419,8 @@ tcb_t *thread_create(clone_args_t *args)
418419 * @param name Name of the thread.
419420 * @param arg Arguments passed to the function called by the thread.
420421 * @param prio The thread scheduling priority.
422+ *
423+ * @return TCB of the newly created thread.
421424 */
422425tcb_t * kernel_thread (th_fn_t start_routine , const char * name , void * arg , uint32_t prio )
423426{
@@ -434,8 +437,9 @@ tcb_t *kernel_thread(th_fn_t start_routine, const char *name, void *arg, uint32_
434437/**
435438 * Create a new user thread based on given arguments.
436439 *
437- * @param args
438- * @return Address of the corresponding TCB
440+ * @param args Aguments to create the user thread
441+ *
442+ * @return TCB of the newly created thread.
439443 */
440444tcb_t * user_thread (clone_args_t * args )
441445{
0 commit comments