sim/posix: move rt_hw_context_switch_interrupt after it's definition

This fix a compile error in Clang.
This commit is contained in:
Grissiom 2013-09-04 00:05:03 +08:00
parent b4166e0b25
commit 3ebc766521
1 changed files with 6 additions and 6 deletions

View File

@ -363,12 +363,6 @@ void rt_hw_interrupt_enable(rt_base_t level)
/*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,
rt_uint32_t to)
{
@ -400,6 +394,12 @@ void rt_hw_context_switch(rt_uint32_t from,
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)
{
//set to thread