<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-02-11)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Joel Sherrill <joel.sherrilL@OARcorp.com>

        * rtems/src/semtranslatereturncode.c,
        score/include/rtems/score/coremutex.h,
        score/src/coremutexsurrender.c,
        score/src/objectinitializeinformation.c: Disable code not reachable
        when POSIX is not enabled.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2708&r2=text&tr2=1.2709&diff_format=h">M</a></td><td width='1%'>1.2709</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/rtems/src/semtranslatereturncode.c.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>cpukit/rtems/src/semtranslatereturncode.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/coremutex.h.diff?r1=text&tr1=1.39&r2=text&tr2=1.40&diff_format=h">M</a></td><td width='1%'>1.40</td><td width='100%'>cpukit/score/include/rtems/score/coremutex.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/coremutexsurrender.c.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/score/src/coremutexsurrender.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/objectinitializeinformation.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>cpukit/score/src/objectinitializeinformation.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2708 rtems/cpukit/ChangeLog:1.2709
--- rtems/cpukit/ChangeLog:1.2708       Fri Feb 11 09:38:31 2011
+++ rtems/cpukit/ChangeLog      Fri Feb 11 14:38:16 2011
</font><font color='#997700'>@@ -1,5 +1,13 @@
</font> 2011-02-11        Joel Sherrill <joel.sherrilL@OARcorp.com>
 
<font color='#000088'>+   * rtems/src/semtranslatereturncode.c,
+       score/include/rtems/score/coremutex.h,
+       score/src/coremutexsurrender.c,
+       score/src/objectinitializeinformation.c: Disable code not reachable
+       when POSIX is not enabled.
+
+2011-02-11     Joel Sherrill <joel.sherrilL@OARcorp.com>
+
</font>   * score/include/rtems/score/context.h: Spacing.
 
 2011-02-11     Ralf Corsépius <ralf.corsepius@rtems.org>

<font color='#006600'>diff -u rtems/cpukit/rtems/src/semtranslatereturncode.c:1.20 rtems/cpukit/rtems/src/semtranslatereturncode.c:1.21
--- rtems/cpukit/rtems/src/semtranslatereturncode.c:1.20        Thu May 28 15:38:12 2009
+++ rtems/cpukit/rtems/src/semtranslatereturncode.c     Fri Feb 11 14:38:16 2011
</font><font color='#997700'>@@ -64,11 +64,13 @@
</font> const rtems_status_code _Semaphore_Translate_core_mutex_return_code_[] = {
   RTEMS_SUCCESSFUL,         /* CORE_MUTEX_STATUS_SUCCESSFUL */
   RTEMS_UNSATISFIED,        /* CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT */
<font color='#000088'>+#if !defined(RTEMS_POSIX_API)
</font>   RTEMS_UNSATISFIED,        /* CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED */
<font color='#000088'>+#endif
</font>   RTEMS_NOT_OWNER_OF_RESOURCE, /* CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE */
   RTEMS_OBJECT_WAS_DELETED, /* CORE_MUTEX_WAS_DELETED */
   RTEMS_TIMEOUT,            /* CORE_MUTEX_TIMEOUT */
<font color='#880000'>-#ifdef __RTEMS_STRICT_ORDER_MUTEX__
</font><font color='#000088'>+#if !defined(__RTEMS_STRICT_ORDER_MUTEX__)
</font>     CORE_MUTEX_RELEASE_NOT_ORDER,
 #endif
   RTEMS_INVALID_PRIORITY   /* CORE_MUTEX_STATUS_CEILING_VIOLATED */

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/coremutex.h:1.39 rtems/cpukit/score/include/rtems/score/coremutex.h:1.40
--- rtems/cpukit/score/include/rtems/score/coremutex.h:1.39     Fri Nov 27 23:58:53 2009
+++ rtems/cpukit/score/include/rtems/score/coremutex.h  Fri Feb 11 14:38:16 2011
</font><font color='#997700'>@@ -85,10 +85,12 @@
</font>    *  resource was unavailable.
    */
   CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT,
<font color='#000088'>+#if !defined(RTEMS_POSIX_API)
</font>   /** This status indicates that an attempt was made to relock a mutex
    *  for which nesting is not configured.
    */
   CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED,
<font color='#000088'>+#endif
</font>   /** This status indicates that an attempt was made to release a mutex
    *  by a thread other than the thread which locked it.
    */
<font color='#997700'>@@ -103,7 +105,7 @@
</font>    */
   CORE_MUTEX_TIMEOUT,
 
<font color='#880000'>-#ifdef __RTEMS_STRICT_ORDER_MUTEX__
</font><font color='#000088'>+#if !defined(__RTEMS_STRICT_ORDER_MUTEX__)
</font>   /** This status indicates that a thread not release the mutex which has
    *  the priority inheritance property in a right order.
    */

<font color='#006600'>diff -u rtems/cpukit/score/src/coremutexsurrender.c:1.23 rtems/cpukit/score/src/coremutexsurrender.c:1.24
--- rtems/cpukit/score/src/coremutexsurrender.c:1.23    Thu Jul 15 10:44:40 2010
+++ rtems/cpukit/score/src/coremutexsurrender.c Fri Feb 11 14:38:16 2011
</font><font color='#997700'>@@ -137,9 +137,11 @@
</font>       switch ( the_mutex->Attributes.lock_nesting_behavior ) {
         case CORE_MUTEX_NESTING_ACQUIRES:
           return CORE_MUTEX_STATUS_SUCCESSFUL;
<font color='#880000'>-        case CORE_MUTEX_NESTING_IS_ERROR:
-          /* should never occur */
-          return CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
</font><font color='#000088'>+        #if !defined(RTEMS_POSIX_API)
+          case CORE_MUTEX_NESTING_IS_ERROR:
+            /* should never occur */
+            return CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
+        #endif
</font>         case CORE_MUTEX_NESTING_BLOCKS:
           /* Currently no API exercises this behavior. */
           break;

<font color='#006600'>diff -u rtems/cpukit/score/src/objectinitializeinformation.c:1.19 rtems/cpukit/score/src/objectinitializeinformation.c:1.20
--- rtems/cpukit/score/src/objectinitializeinformation.c:1.19   Tue Aug 10 12:41:32 2010
+++ rtems/cpukit/score/src/objectinitializeinformation.c        Fri Feb 11 14:38:16 2011
</font><font color='#997700'>@@ -128,13 +128,18 @@
</font> 
   /*
    *  Calculate the maximum name length
<font color='#000088'>+   *
+   *  NOTE: Always 4 bytes long in Class so aligned.  It is POSIX name
+   *        lengths that may be an odd number of bytes.
</font>    */
   name_length = maximum_name_length;
 
<font color='#880000'>-  if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
-    name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
-                  ~(OBJECTS_NAME_ALIGNMENT-1);
-
</font><font color='#000088'>+  #if !defined(RTEMS_POSIX_API)
+    if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
+      name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
+                    ~(OBJECTS_NAME_ALIGNMENT-1);
+  #endif
+<span style="background-color: #FF0000"> </span>
</font>   information->name_length = name_length;
 
   _Chain_Initialize_empty( &information->Inactive );
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>