diff options
| author | Bernard Xiong <[email protected]> | 2013-09-03 22:55:17 -0700 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-09-03 22:55:17 -0700 |
| commit | 15b9db80d60a5af95c1f8a072a65694f56e8ff0d (patch) | |
| tree | 15c1488e1a24f8789c1e9ba4b5e867c6a72e27be | |
| parent | b4166e0b2585eecea8a46f72c50f75724d2feec1 (diff) | |
| parent | 3ebc76652197b47e117ed2a856786a4d199d79a7 (diff) | |
Merge pull request #154 from grissiom/simulator
sim/posix: move rt_hw_context_switch_interrupt after it's definition
| -rw-r--r-- | libcpu/sim/posix/cpu_port.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcpu/sim/posix/cpu_port.c b/libcpu/sim/posix/cpu_port.c index e094edb6bc..eb1ae4865c 100644 --- a/libcpu/sim/posix/cpu_port.c +++ b/libcpu/sim/posix/cpu_port.c @@ -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 |
