cpu/cortexm_common: Don't access sched_active_*

Replaced accesses to sched_active_* with API calls in C files
This commit is contained in:
Marian Buschsieweke 2020-08-17 11:27:52 +02:00
parent fa12d9ad52
commit aeedb3ad16
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -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());