diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-02 14:02:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-19 12:00:46 +0200 |
commit | cfa5aabc786c27887f219b92c1a6566020d96f1a (patch) | |
tree | 2811e16312c880f3d09b2aecd510f2df6d301507 /cpukit/score/src/mpci.c | |
parent | score: Fine grained locking for semaphores (diff) | |
download | rtems-cfa5aabc786c27887f219b92c1a6566020d96f1a.tar.bz2 |
score: Delete _CORE_semaphore_Seize()
Rename _CORE_semaphore_Seize_isr_disable() to _CORE_semaphore_Seize().
Diffstat (limited to 'cpukit/score/src/mpci.c')
-rw-r--r-- | cpukit/score/src/mpci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 6b3bc7fbd8..2b1f6fff44 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -283,6 +283,7 @@ Thread _MPCI_Receive_server( MP_packet_Prefix *the_packet; MPCI_Packet_processor the_function; Thread_Control *executing; + ISR_lock_Context lock_context; executing = _Thread_Get_executing(); @@ -290,15 +291,15 @@ Thread _MPCI_Receive_server( executing->receive_packet = NULL; - _Thread_Disable_dispatch(); + _ISR_lock_ISR_disable( &lock_context ); _CORE_semaphore_Seize( &_MPCI_Semaphore, executing, 0, true, - WATCHDOG_NO_TIMEOUT + WATCHDOG_NO_TIMEOUT, + &lock_context ); - _Thread_Enable_dispatch(); for ( ; ; ) { the_packet = _MPCI_Receive_packet(); |