diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-20 08:45:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-21 08:25:31 +0200 |
commit | 4db0ae8e07870d4ca23dc1b9f8097e3494fe82a2 (patch) | |
tree | e7ba3533960b935b67b152198bba713b1c4ebed2 /cpukit/libnetworking/rtems | |
parent | score: Add _ISR_lock_ISR_disable/enable() (diff) | |
download | rtems-4db0ae8e07870d4ca23dc1b9f8097e3494fe82a2.tar.bz2 |
score: _Objects_Get_isr_disable()
Use ISR_lock_Context instead of ISR_Level to allow use of ISR locks for
low-level locking.
Update #2273.
Diffstat (limited to 'cpukit/libnetworking/rtems')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index f05530ee7a..63d4b8045f 100644 --- a/cpukit/libnetworking/rtems/rtems_glue.c +++ b/cpukit/libnetworking/rtems/rtems_glue.c @@ -376,12 +376,12 @@ void rtems_bsdnet_semaphore_obtain (void) { #ifdef RTEMS_FAST_MUTEX - ISR_Level level; + ISR_lock_Context lock_context; Thread_Control *executing; #ifdef RTEMS_SMP _Thread_Disable_dispatch(); #endif - _ISR_Disable (level); + _ISR_lock_ISR_disable(&lock_context); if (!the_networkSemaphore) rtems_panic ("rtems-net: network sema obtain: network not initialised\n"); executing = _Thread_Executing; @@ -391,7 +391,7 @@ rtems_bsdnet_semaphore_obtain (void) networkSemaphore, 1, /* wait */ 0, /* forever */ - level + &lock_context ); #ifdef RTEMS_SMP _Thread_Enable_dispatch(); |