change log for rtems (2010-07-26)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Jul 27 03:10:30 UTC 2010
*joel*:
2010-07-26 Joel Sherrill <joel.sherrilL at OARcorp.com>
* score/src/threadget.c: Conditionalize a check that can only occur
when POSIX is disabled.
M 1.2527 cpukit/ChangeLog
M 1.15 cpukit/score/src/threadget.c
diff -u rtems/cpukit/ChangeLog:1.2526 rtems/cpukit/ChangeLog:1.2527
--- rtems/cpukit/ChangeLog:1.2526 Mon Jul 26 20:48:46 2010
+++ rtems/cpukit/ChangeLog Mon Jul 26 21:17:31 2010
@@ -1,5 +1,10 @@
2010-07-26 Joel Sherrill <joel.sherrilL at OARcorp.com>
+ * score/src/threadget.c: Conditionalize a check that can only occur
+ when POSIX is disabled.
+
+2010-07-26 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
* rtems/src/taskmode.c, score/inline/rtems/score/thread.inl: Rework a
bit to eliminate unreachable path for task blocked while calling
rtems_task_mode() on itself.
diff -u rtems/cpukit/score/src/threadget.c:1.14 rtems/cpukit/score/src/threadget.c:1.15
--- rtems/cpukit/score/src/threadget.c:1.14 Sun Nov 29 07:51:52 2009
+++ rtems/cpukit/score/src/threadget.c Mon Jul 26 21:17:31 2010
@@ -1,8 +1,7 @@
/*
- * Thread Handler
+ * Thread Handler - Object Id to Thread Pointer
*
- *
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -45,7 +44,6 @@
* cycles off the execution time, this routine is worth
* further optimization attention.
*/
-
Thread_Control *_Thread_Get (
Objects_Id id,
Objects_Locations *location
@@ -77,10 +75,15 @@
}
api_information = _Objects_Information_table[ the_api ];
- if ( !api_information ) {
- *location = OBJECTS_ERROR;
- goto done;
- }
+ /*
+ * There is no way for this to happen if POSIX is enabled.
+ */
+ #if !defined(RTEMS_POSIX_API)
+ if ( !api_information ) {
+ *location = OBJECTS_ERROR;
+ goto done;
+ }
+ #endif
information = api_information[ the_class ];
if ( !information ) {
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100726/cbad58a4/attachment.html>
More information about the vc
mailing list