1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/arm7_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:22:03 +02:00
parent 7abcc4242b
commit da4979963d
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -89,7 +89,8 @@ void thread_print_stack(void)
__asm__("mov %0, sp" : "=r"(stack));
register unsigned int *s = (unsigned int *)stack;
printf("task: %X SP: %X\n", (unsigned int) sched_active_thread, (unsigned int) stack);
printf("task: %" PRIkernel_pid " SP: %X\n", thread_getpid(),
(uintptr_t)stack);
register int i = 0;
s += 5;