cpu/atmega_common: Don't access sched_active_*
Replaced accesses to sched_active_* with API calls in C files
This commit is contained in:
parent
da4979963d
commit
fa12d9ad52
@ -168,7 +168,7 @@ char *thread_stack_init(thread_task_func_t task_func, void *arg,
|
||||
/**
|
||||
* @brief thread_stack_print prints the stack to stdout.
|
||||
* It depends on getting the correct values for stack_start, stack_size and sp
|
||||
* from sched_active_thread.
|
||||
* of the active thread.
|
||||
* Maybe it would be good to change that to way that is less dependent on
|
||||
* getting correct values elsewhere (since it is a debugging tool and in the
|
||||
* presence of bugs the data may be corrupted).
|
||||
@ -176,7 +176,7 @@ char *thread_stack_init(thread_task_func_t task_func, void *arg,
|
||||
void thread_stack_print(void)
|
||||
{
|
||||
uint8_t found_marker = 1;
|
||||
uint8_t *sp = (uint8_t *)sched_active_thread->sp;
|
||||
uint8_t *sp = (uint8_t *)thread_get_active()->sp;
|
||||
uint16_t size = 0;
|
||||
|
||||
printf("Printing current stack of thread %" PRIkernel_pid "\n", thread_getpid());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user