diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-17 15:53:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-18 09:58:58 +0200 |
commit | 95e09afa92c5d0522a0d04019ef6680796688896 (patch) | |
tree | 2c04a60ed5669b4baba5a783e1919b4b4a37d858 /cpukit/score/src/coremutexseizeintr.c | |
parent | score: Convert to inline function (diff) | |
download | rtems-95e09afa92c5d0522a0d04019ef6680796688896.tar.bz2 |
score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter. Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/coremutexseizeintr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/score/src/coremutexseizeintr.c b/cpukit/score/src/coremutexseizeintr.c index f31d2fba96..cc726b6135 100644 --- a/cpukit/score/src/coremutexseizeintr.c +++ b/cpukit/score/src/coremutexseizeintr.c @@ -28,9 +28,14 @@ #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, + Thread_Control *executing, ISR_Level level ) { - return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level ); + return _CORE_mutex_Seize_interrupt_trylock_body( + the_mutex, + executing, + level + ); } #endif |