diff options
| author | bernard <[email protected]> | 2013-09-17 11:07:36 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2013-09-17 11:07:36 +0800 |
| commit | 0bf7ed76cff8071718f50ebeb68ba3bb2544a7cb (patch) | |
| tree | 81db6eaa0424dc1c10355b5b4c8fe56c763c1cfd /libcpu | |
| parent | 77096894f9d53cb0742adb5330fed4966e956cd1 (diff) | |
| parent | 47c152ee7fdcf8b101a08bacebbafb52d2c8d3a7 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'libcpu')
| -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 |
