提交 15b9db80 编写于 作者: B Bernard Xiong

Merge pull request #154 from grissiom/simulator

sim/posix: move rt_hw_context_switch_interrupt after it's definition
...@@ -363,12 +363,6 @@ void rt_hw_interrupt_enable(rt_base_t level) ...@@ -363,12 +363,6 @@ void rt_hw_interrupt_enable(rt_base_t level)
/*TODO: It may need to unmask the signal */ /*TODO: It may need to unmask the signal */
} }
void rt_hw_context_switch_interrupt(rt_uint32_t from,
rt_uint32_t to)
{
rt_hw_context_switch(from, to);
}
void rt_hw_context_switch(rt_uint32_t from, void rt_hw_context_switch(rt_uint32_t from,
rt_uint32_t to) rt_uint32_t to)
{ {
...@@ -400,6 +394,12 @@ void rt_hw_context_switch(rt_uint32_t from, ...@@ -400,6 +394,12 @@ void rt_hw_context_switch(rt_uint32_t from,
pthread_mutex_unlock(ptr_int_mutex); pthread_mutex_unlock(ptr_int_mutex);
} }
void rt_hw_context_switch_interrupt(rt_uint32_t from,
rt_uint32_t to)
{
rt_hw_context_switch(from, to);
}
void rt_hw_context_switch_to(rt_uint32_t to) void rt_hw_context_switch_to(rt_uint32_t to)
{ {
//set to thread //set to thread
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册