unified: Enable handling of thread options for static threads

Change-Id: I51d2d9cfa0eeb5f974a6cf1db32406399ef57418
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2016-10-26 10:46:44 -05:00
commit 743bdb8143
5 changed files with 5 additions and 5 deletions

View file

@ -135,6 +135,7 @@ void _new_thread(char *pStackMem, unsigned stackSize,
#else
tcs->link = NULL;
tcs->flags = priority == -1 ? TASK | PREEMPTIBLE : FIBER;
ARG_UNUSED(options);
#endif
tcs->prio = priority;

View file

@ -123,6 +123,7 @@ void _new_thread(char *pStackMem, unsigned stackSize,
#else
tcs->link = NULL;
tcs->flags = priority == -1 ? TASK | PREEMPTIBLE : FIBER;
ARG_UNUSED(options);
#endif
tcs->prio = priority;

View file

@ -107,6 +107,7 @@ void _new_thread(char *stack_memory, unsigned stack_size,
} else {
tcs->flags = FIBER;
}
ARG_UNUSED(options);
tcs->link = (struct tcs *)NULL; /* thread not inserted into list yet */
#endif /* CONFIG_KERNEL_V2 */

View file

@ -93,10 +93,6 @@ static void _new_thread_internal(char *pStackMem, unsigned stackSize,
/* ptr to the new task's tcs */
struct tcs *tcs = (struct tcs *)pStackMem;
#ifndef CONFIG_FP_SHARING
ARG_UNUSED(options);
#endif /* !CONFIG_FP_SHARING */
tcs->prio = priority;
#if (defined(CONFIG_FP_SHARING) || defined(CONFIG_GDB_INFO))
tcs->excNestCount = 0;
@ -121,6 +117,7 @@ static void _new_thread_internal(char *pStackMem, unsigned stackSize,
tcs->flags = PREEMPTIBLE | TASK;
else
tcs->flags = FIBER;
ARG_UNUSED(options);
tcs->link = (struct tcs *)NULL; /* thread not inserted into list yet */
#endif

View file

@ -392,7 +392,7 @@ void _init_static_threads(void)
thread_data->init_p2,
thread_data->init_p3,
thread_data->init_prio,
0);
thread_data->init_options);
thread_data->thread->init_data = thread_data;
}