summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/apimutexlock.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-08-02 13:38:25 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-08-02 13:38:25 +0000
commit6ef32a32b2b14f25ff5582fd7fa025381eb43966 (patch)
tree255a6993693bfb7b720dd45b6748482c62092bb5 /cpukit/score/src/apimutexlock.c
parent2011-08-02 Petr Benes <benesp16@fel.cvut.cz> (diff)
downloadrtems-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.c4
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(