cpu/cortexm_common: Don't access sched_active_*
Replaced accesses to sched_active_* with API calls in C files
This commit is contained in:
parent
fa12d9ad52
commit
aeedb3ad16
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user