From aeedb3ad16e2b1bbadb9a0dfa21c7e326772c651 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 17 Aug 2020 11:27:52 +0200 Subject: [PATCH] cpu/cortexm_common: Don't access sched_active_* Replaced accesses to sched_active_* with API calls in C files --- cpu/cortexm_common/thread_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/cortexm_common/thread_arch.c b/cpu/cortexm_common/thread_arch.c index 0b4352b658..8311003dbc 100644 --- a/cpu/cortexm_common/thread_arch.c +++ b/cpu/cortexm_common/thread_arch.c @@ -226,7 +226,7 @@ char *thread_stack_init(thread_task_func_t task_func, void thread_stack_print(void) { int count = 0; - uint32_t *sp = (uint32_t *)sched_active_thread->sp; + uint32_t *sp = (uint32_t *)thread_get_active()->sp; printf("printing the current stack of thread %" PRIkernel_pid "\n", thread_getpid());