diff --git a/cpu/msp430_common/cpu.c b/cpu/msp430_common/cpu.c index e237ef1939..b63e0058c3 100644 --- a/cpu/msp430_common/cpu.c +++ b/cpu/msp430_common/cpu.c @@ -50,7 +50,7 @@ void thread_yield_higher(void) __save_context(); - /* have sched_active_thread point to the next thread */ + /* have thread_get_active() point to the next thread */ sched_run(); __restore_context(); diff --git a/cpu/msp430_common/include/cpu.h b/cpu/msp430_common/include/cpu.h index 5b23da760f..c1f0aab67f 100644 --- a/cpu/msp430_common/include/cpu.h +++ b/cpu/msp430_common/include/cpu.h @@ -67,7 +67,7 @@ static inline void __attribute__((always_inline)) __save_context(void) __asm__("push r5"); __asm__("push r4"); - __asm__("mov.w r1,%0" : "=r"(sched_active_thread->sp)); + __asm__("mov.w r1,%0" : "=r"(thread_get_active()->sp)); } /** @@ -75,7 +75,7 @@ static inline void __attribute__((always_inline)) __save_context(void) */ static inline void __attribute__((always_inline)) __restore_context(void) { - __asm__("mov.w %0,r1" : : "m"(sched_active_thread->sp)); + __asm__("mov.w %0,r1" : : "m"(thread_get_active()->sp)); __asm__("pop r4"); __asm__("pop r5");