提交 f9f959f3 编写于 作者: B Bernard Xiong

[Kernel] Fix the thread->sp data type issue.

上级 b9261e43
......@@ -264,9 +264,9 @@ void rt_system_scheduler_start(void)
/* switch to new thread */
#ifdef RT_USING_SMP
rt_hw_context_switch_to((rt_uint32_t)&to_thread->sp, to_thread);
rt_hw_context_switch_to((rt_ubase_t)&to_thread->sp, to_thread);
#else
rt_hw_context_switch_to((rt_uint32_t)&to_thread->sp);
rt_hw_context_switch_to((rt_ubase_t)&to_thread->sp);
#endif /*RT_USING_SMP*/
/* never come back */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册