diff options
author | Benjamin Walsh <walsh.benj@gmail.com> | 2017-01-22 11:41:59 -0500 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2017-01-24 13:34:49 +0000 |
commit | a8978aba8fff9f9cdb0b695bfb8211f93a95f606 (patch) | |
tree | cf6dfeb702a6fe3b6f2d3cc9bd8ced994ab8a793 /arch | |
parent | 3f3f4d94d5b562db8e4d58bacb9b1cfb54af8185 (diff) |
kernel: rename thread states symbols
They are not part of the API, so rename from K_<state> to
_THREAD_<state>.
Change-Id: Iaebb7d3083b80b9769bee5616e0f96ed2abc5c56
Signed-off-by: Benjamin Walsh <walsh.benj@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/core/thread.c | 2 | ||||
-rw-r--r-- | arch/arm/core/thread.c | 2 | ||||
-rw-r--r-- | arch/nios2/core/thread.c | 2 | ||||
-rw-r--r-- | arch/riscv32/core/thread.c | 2 | ||||
-rw-r--r-- | arch/x86/core/thread.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/arc/core/thread.c b/arch/arc/core/thread.c index 22f0fc6ea..ae9799a32 100644 --- a/arch/arc/core/thread.c +++ b/arch/arc/core/thread.c @@ -113,7 +113,7 @@ void _new_thread(char *pStackMem, size_t stackSize, pInitCtx->status32 = _ARC_V2_STATUS32_E(_ARC_V2_DEF_IRQ_LEVEL); #endif - _init_thread_base(&thread->base, priority, K_PRESTART, options); + _init_thread_base(&thread->base, priority, _THREAD_PRESTART, options); /* static threads overwrite them afterwards with real values */ thread->init_data = NULL; diff --git a/arch/arm/core/thread.c b/arch/arm/core/thread.c index d01ada481..71a769521 100644 --- a/arch/arm/core/thread.c +++ b/arch/arm/core/thread.c @@ -100,7 +100,7 @@ void _new_thread(char *pStackMem, size_t stackSize, pInitCtx->xpsr = 0x01000000UL; /* clear all, thumb bit is 1, even if RO */ - _init_thread_base(&tcs->base, priority, K_PRESTART, options); + _init_thread_base(&tcs->base, priority, _THREAD_PRESTART, options); /* static threads overwrite it afterwards with real value */ tcs->init_data = NULL; diff --git a/arch/nios2/core/thread.c b/arch/nios2/core/thread.c index 64b4b819f..83bdb9077 100644 --- a/arch/nios2/core/thread.c +++ b/arch/nios2/core/thread.c @@ -76,7 +76,7 @@ void _new_thread(char *stack_memory, size_t stack_size, /* Initialize various struct k_thread members */ thread = (struct k_thread *)stack_memory; - _init_thread_base(&thread->base, priority, K_PRESTART, options); + _init_thread_base(&thread->base, priority, _THREAD_PRESTART, options); /* static threads overwrite it afterwards with real value */ thread->init_data = NULL; diff --git a/arch/riscv32/core/thread.c b/arch/riscv32/core/thread.c index b0f171436..8c5d62327 100644 --- a/arch/riscv32/core/thread.c +++ b/arch/riscv32/core/thread.c @@ -86,7 +86,7 @@ void _new_thread(char *stack_memory, size_t stack_size, /* Initialize various struct k_thread members */ thread = (struct k_thread *)stack_memory; - _init_thread_base(&thread->base, priority, K_PRESTART, options); + _init_thread_base(&thread->base, priority, _THREAD_PRESTART, options); /* static threads overwrite it afterwards with real value */ thread->init_data = NULL; diff --git a/arch/x86/core/thread.c b/arch/x86/core/thread.c index 61f11ab57..ff4ebeaf1 100644 --- a/arch/x86/core/thread.c +++ b/arch/x86/core/thread.c @@ -77,7 +77,7 @@ static void _new_thread_internal(char *pStackMem, unsigned stackSize, thread->arch.excNestCount = 0; #endif /* CONFIG_FP_SHARING || CONFIG_GDB_INFO */ - _init_thread_base(&thread->base, priority, K_PRESTART, options); + _init_thread_base(&thread->base, priority, _THREAD_PRESTART, options); /* static threads overwrite it afterwards with real value */ thread->init_data = NULL; |