diff --git a/arch/arc/core/thread.c b/arch/arc/core/thread.c index 3ce8f0f5c09..71f9184d77c 100644 --- a/arch/arc/core/thread.c +++ b/arch/arc/core/thread.c @@ -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; diff --git a/arch/arm/core/thread.c b/arch/arm/core/thread.c index 3f07b99eda1..0d72b967113 100644 --- a/arch/arm/core/thread.c +++ b/arch/arm/core/thread.c @@ -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; diff --git a/arch/nios2/core/thread.c b/arch/nios2/core/thread.c index 808744bd299..21d75444716 100644 --- a/arch/nios2/core/thread.c +++ b/arch/nios2/core/thread.c @@ -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 */ diff --git a/arch/x86/core/thread.c b/arch/x86/core/thread.c index f03e457e629..7967a9fa5a5 100644 --- a/arch/x86/core/thread.c +++ b/arch/x86/core/thread.c @@ -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 diff --git a/kernel/unified/thread.c b/kernel/unified/thread.c index 93a845fbab2..e93e2a39dd1 100644 --- a/kernel/unified/thread.c +++ b/kernel/unified/thread.c @@ -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; }