summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2016-10-26 10:46:44 -0500
committerAllan Stephens <allan.stephens@windriver.com>2016-10-27 08:36:14 -0500
commit743bdb81436f8df7de0e29e9442bb8c46fda0fe7 (patch)
tree9330315da4e1a8a6985aabdf6462f118c615bc1f /arch
parent6cfe1322f8a5a27373cfd68c479d1284971a5cd3 (diff)
unified: Enable handling of thread options for static threads
Change-Id: I51d2d9cfa0eeb5f974a6cf1db32406399ef57418 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arc/core/thread.c1
-rw-r--r--arch/arm/core/thread.c1
-rw-r--r--arch/nios2/core/thread.c1
-rw-r--r--arch/x86/core/thread.c5
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/arc/core/thread.c b/arch/arc/core/thread.c
index 3ce8f0f5c..71f9184d7 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 3f07b99ed..0d72b9671 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 808744bd2..21d754447 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 f03e457e6..7967a9fa5 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