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/score/src/apimutexlock.c | |
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/score/src/apimutexlock.c')
-rw-r--r-- | cpukit/score/src/apimutexlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/apimutexlock.c b/cpukit/score/src/apimutexlock.c index 07e5159987..45ad0ba9e7 100644 --- a/cpukit/score/src/apimutexlock.c +++ b/cpukit/score/src/apimutexlock.c @@ -26,7 +26,7 @@ void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) { bool previous_thread_life_protection; - ISR_Level level; + ISR_lock_Context lock_context; previous_thread_life_protection = _Thread_Set_life_protection( true ); @@ -34,7 +34,7 @@ void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) _Thread_Disable_dispatch(); #endif - _ISR_Disable( level ); + _ISR_lock_ISR_disable( &lock_context ); _CORE_mutex_Seize( &the_mutex->Mutex, @@ -42,7 +42,7 @@ void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) the_mutex->Object.id, true, 0, - level + &lock_context ); if ( the_mutex->Mutex.nest_count == 1 ) { |