summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-18 14:47:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-18 14:47:20 +0000
commit22c264e0851905b92e088acbd4d29118cb146172 (patch)
treea04063d2aefc2a7bacbd68dfe849718069898d67 /cpukit
parentNew. (diff)
downloadrtems-22c264e0851905b92e088acbd4d29118cb146172.tar.bz2
2009-05-18 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1412/cpukit * score/src/coremutex.c: Add missing braces. Broken with strict mutex code added.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/score/src/coremutex.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 029494998a..9238e9f62f 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-18 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1412/cpukit
+ * score/src/coremutex.c: Add missing braces. Broken with strict mutex
+ code added.
+
2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/getitimer.c, posix/src/setitimer.c: Add error checks and
diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c
index 60a2995882..24b36cbef1 100644
--- a/cpukit/score/src/coremutex.c
+++ b/cpukit/score/src/coremutex.c
@@ -63,7 +63,7 @@ void _CORE_mutex_Initialize(
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
- _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) )
+ _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
_Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex,
@@ -72,6 +72,7 @@ void _CORE_mutex_Initialize(
#endif
_Thread_Executing->resource_count++;
+ }
} else {
the_mutex->nest_count = 0;
the_mutex->holder = NULL;