diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-08-02 13:38:25 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-08-02 13:38:25 +0000 |
commit | 6ef32a32b2b14f25ff5582fd7fa025381eb43966 (patch) | |
tree | 255a6993693bfb7b720dd45b6748482c62092bb5 /cpukit/score/src/apimutexlock.c | |
parent | 2011-08-02 Petr Benes <benesp16@fel.cvut.cz> (diff) | |
download | rtems-6ef32a32b2b14f25ff5582fd7fa025381eb43966.tar.bz2 |
2011-08-02 Jennifer.Averett <Jennifer.Averett@OARcorp.com>
PR 1872
* score/src/apimutexlock.c, score/src/apimutexunlock.c: Added smp
support to apimutex.
Diffstat (limited to 'cpukit/score/src/apimutexlock.c')
-rw-r--r-- | cpukit/score/src/apimutexlock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/apimutexlock.c b/cpukit/score/src/apimutexlock.c index 6729478ae4..b8e74064a2 100644 --- a/cpukit/score/src/apimutexlock.c +++ b/cpukit/score/src/apimutexlock.c @@ -22,6 +22,10 @@ void _API_Mutex_Lock( { ISR_Level level; + #if defined(RTEMS_SMP) + _Thread_Disable_dispatch(); + #endif + _ISR_Disable( level ); _CORE_mutex_Seize( |