diff --git a/libcpu/risc-v/nuclei/cpuport.c b/libcpu/risc-v/nuclei/cpuport.c index e74d174a54..a107799937 100644 --- a/libcpu/risc-v/nuclei/cpuport.c +++ b/libcpu/risc-v/nuclei/cpuport.c @@ -143,9 +143,7 @@ void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to) */ void rt_hw_context_switch(rt_ubase_t from, rt_ubase_t to) { - rt_interrupt_from_thread = from; - rt_interrupt_to_thread = to; - RT_YIELD(); + rt_hw_context_switch_interrupt(from, to); } /**