diff --git a/OS/RTThread/libcpu/risc-v/nuclei/cpuport.c b/OS/RTThread/libcpu/risc-v/nuclei/cpuport.c index bc5b0d49..6811f0f4 100644 --- a/OS/RTThread/libcpu/risc-v/nuclei/cpuport.c +++ b/OS/RTThread/libcpu/risc-v/nuclei/cpuport.c @@ -122,9 +122,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; - portYIELD(); + rt_hw_context_switch_interrupt(from, to); } /** shutdown CPU */