From da4979963df4e82aafa8d6b5793557ecaf7bd707 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 17 Aug 2020 11:22:03 +0200 Subject: [PATCH] cpu/arm7_common: Don't access sched_active_* Replaced accesses to sched_active_* with API calls in C files --- cpu/arm7_common/arm_cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/arm7_common/arm_cpu.c b/cpu/arm7_common/arm_cpu.c index 361d366215..2214540293 100644 --- a/cpu/arm7_common/arm_cpu.c +++ b/cpu/arm7_common/arm_cpu.c @@ -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;