From 22428f6cfbdd8bc511f22b1fea466995a2438b5d Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Wed, 2 Dec 2015 11:59:20 +0100 Subject: [PATCH] core: adapted to renamed THREAD_FLAGS --- core/kernel_init.c | 4 ++-- core/thread.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/kernel_init.c b/core/kernel_init.c index 715139b1a5..41ce102726 100644 --- a/core/kernel_init.c +++ b/core/kernel_init.c @@ -94,12 +94,12 @@ void kernel_init(void) thread_create(idle_stack, sizeof(idle_stack), THREAD_PRIORITY_IDLE, - CREATE_WOUT_YIELD | CREATE_STACKTEST, + THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, idle_thread, NULL, idle_name); thread_create(main_stack, sizeof(main_stack), THREAD_PRIORITY_MAIN, - CREATE_WOUT_YIELD | CREATE_STACKTEST, + THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST, main_trampoline, NULL, main_name); cpu_switch_context_exit(); diff --git a/core/thread.c b/core/thread.c index f1a770dbfb..803aa726db 100644 --- a/core/thread.c +++ b/core/thread.c @@ -148,7 +148,7 @@ kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags, tcb_t *cb = (tcb_t *) (stack + stacksize); #if defined(DEVELHELP) || defined(SCHED_TEST_STACK) - if (flags & CREATE_STACKTEST) { + if (flags & THREAD_CREATE_STACKTEST) { /* assign each int of the stack the value of it's address */ uintptr_t *stackmax = (uintptr_t *) (stack + stacksize); uintptr_t *stackp = (uintptr_t *) stack; @@ -212,13 +212,13 @@ kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags, DEBUG("Created thread %s. PID: %" PRIkernel_pid ". Priority: %u.\n", name, cb->pid, priority); - if (flags & CREATE_SLEEPING) { + if (flags & THREAD_CREATE_SLEEPING) { sched_set_status(cb, STATUS_SLEEPING); } else { sched_set_status(cb, STATUS_PENDING); - if (!(flags & CREATE_WOUT_YIELD)) { + if (!(flags & THREAD_CREATE_WOUT_YIELD)) { restoreIRQ(state); sched_switch(priority); return pid;