[libcpu][nuclei] Fix context switch  in nuclei
previous rt_hw_context_switch might cause the
task switch handling error.
See
@@ -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);
}
/**
