<!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-09-09)</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>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1844/cpukit
* rtems/include/rtems/rtems/msgmp.h: Define
MESSAGE_QUEUE_MP_PACKET_SIZE.
* rtems/src/msgmp.c, rtems/src/msgqcreate.c: Use
MESSAGE_QUEUE_MP_PACKET_SIZE.
</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.2915&r2=text&tr2=1.2916&diff_format=h">M</a></td><td width='1%'>1.2916</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/include/rtems/rtems/msgmp.h.diff?r1=text&tr1=1.22&r2=text&tr2=1.23&diff_format=h">M</a></td><td width='1%'>1.23</td><td width='100%'>cpukit/rtems/include/rtems/rtems/msgmp.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/rtems/src/msgmp.c.diff?r1=text&tr1=1.30&r2=text&tr2=1.31&diff_format=h">M</a></td><td width='1%'>1.31</td><td width='100%'>cpukit/rtems/src/msgmp.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/rtems/src/msgqcreate.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/rtems/src/msgqcreate.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2915 rtems/cpukit/ChangeLog:1.2916
--- rtems/cpukit/ChangeLog:1.2915 Fri Sep 9 06:02:02 2011
+++ rtems/cpukit/ChangeLog Fri Sep 9 06:19:42 2011
</font><font color='#997700'>@@ -1,5 +1,13 @@
</font> 2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
<font color='#000088'>+ PR 1844/cpukit
+ * rtems/include/rtems/rtems/msgmp.h: Define
+ MESSAGE_QUEUE_MP_PACKET_SIZE.
+ * rtems/src/msgmp.c, rtems/src/msgqcreate.c: Use
+ MESSAGE_QUEUE_MP_PACKET_SIZE.
+
+2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
</font> PR 1873/cpukit
* score/include/rtems/score/heap.h: Revert previous commit.
* sapi/include/confdefs.h: Use proper constants in
<font color='#006600'>diff -u rtems/cpukit/rtems/include/rtems/rtems/msgmp.h:1.22 rtems/cpukit/rtems/include/rtems/rtems/msgmp.h:1.23
--- rtems/cpukit/rtems/include/rtems/rtems/msgmp.h:1.22 Wed Aug 5 13:17:12 2009
+++ rtems/cpukit/rtems/include/rtems/rtems/msgmp.h Fri Sep 9 06:19:42 2011
</font><font color='#997700'>@@ -76,6 +76,9 @@
</font> CORE_message_queue_Buffer Buffer;
} Message_queue_MP_Packet;
<font color='#000088'>+#define MESSAGE_QUEUE_MP_PACKET_SIZE \
+ offsetof(Message_queue_MP_Packet, Buffer.buffer)
+
</font> /**
* @brief _Message_queue_MP_Send_process_packet
*
<font color='#006600'>diff -u rtems/cpukit/rtems/src/msgmp.c:1.30 rtems/cpukit/rtems/src/msgmp.c:1.31
--- rtems/cpukit/rtems/src/msgmp.c:1.30 Fri Sep 9 05:57:58 2011
+++ rtems/cpukit/rtems/src/msgmp.c Fri Sep 9 06:19:42 2011
</font><font color='#997700'>@@ -27,9 +27,6 @@
</font> #include <rtems/score/watchdog.h>
#include <rtems/rtems/support.h>
<font color='#880000'>-#define MESSAGE_QUEUE_MP_PACKET_SIZE \
- offsetof(Message_queue_MP_Packet, Buffer.buffer)
-
</font> RTEMS_STATIC_ASSERT(
MESSAGE_QUEUE_MP_PACKET_SIZE <= MP_PACKET_MINIMUM_PACKET_SIZE,
Message_queue_MP_Packet
<font color='#997700'>@@ -116,10 +113,10 @@
</font>
the_packet = _Message_queue_MP_Get_packet();
the_packet->Prefix.the_class = MP_PACKET_MESSAGE_QUEUE;
<font color='#880000'>- the_packet->Prefix.length = sizeof(Message_queue_MP_Packet);
</font><font color='#000088'>+ the_packet->Prefix.length = MESSAGE_QUEUE_MP_PACKET_SIZE;
</font> if ( size_p )
the_packet->Prefix.length += *size_p;
<font color='#880000'>- the_packet->Prefix.to_convert = sizeof(Message_queue_MP_Packet);
</font><font color='#000088'>+ the_packet->Prefix.to_convert = MESSAGE_QUEUE_MP_PACKET_SIZE;
</font>
/*
* make sure message is not too big for our MPCI driver
<font color='#997700'>@@ -162,8 +159,8 @@
</font>
the_packet = _Message_queue_MP_Get_packet();
the_packet->Prefix.the_class = MP_PACKET_MESSAGE_QUEUE;
<font color='#880000'>- the_packet->Prefix.length = sizeof(Message_queue_MP_Packet);
- the_packet->Prefix.to_convert = sizeof(Message_queue_MP_Packet);
</font><font color='#000088'>+ the_packet->Prefix.length = MESSAGE_QUEUE_MP_PACKET_SIZE;
+ the_packet->Prefix.to_convert = MESSAGE_QUEUE_MP_PACKET_SIZE;
</font>
if (! _Options_Is_no_wait(option_set))
the_packet->Prefix.timeout = timeout;
<font color='#006600'>diff -u rtems/cpukit/rtems/src/msgqcreate.c:1.17 rtems/cpukit/rtems/src/msgqcreate.c:1.18
--- rtems/cpukit/rtems/src/msgqcreate.c:1.17 Sun Jul 24 18:55:10 2011
+++ rtems/cpukit/rtems/src/msgqcreate.c Fri Sep 9 06:19:42 2011
</font><font color='#997700'>@@ -95,7 +95,7 @@
</font> */
max_packet_payload_size = _MPCI_table->maximum_packet_size
<font color='#880000'>- - sizeof ( Message_queue_MP_Packet );
</font><font color='#000088'>+ - MESSAGE_QUEUE_MP_PACKET_SIZE;
</font> if ( is_global && max_packet_payload_size < max_message_size )
return RTEMS_INVALID_SIZE;
#endif
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1901/cpukit
* score/src/threadhandler.c: Do not use internal tasks for global
initialization in MP configuration.
</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.2916&r2=text&tr2=1.2917&diff_format=h">M</a></td><td width='1%'>1.2917</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadhandler.c.diff?r1=text&tr1=1.36&r2=text&tr2=1.37&diff_format=h">M</a></td><td width='1%'>1.37</td><td width='100%'>cpukit/score/src/threadhandler.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2916 rtems/cpukit/ChangeLog:1.2917
--- rtems/cpukit/ChangeLog:1.2916 Fri Sep 9 06:19:42 2011
+++ rtems/cpukit/ChangeLog Fri Sep 9 06:25:23 2011
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
<font color='#000088'>+ PR 1901/cpukit
+ * score/src/threadhandler.c: Do not use internal tasks for global
+ initialization in MP configuration.
+
+2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
</font> PR 1844/cpukit
* rtems/include/rtems/rtems/msgmp.h: Define
MESSAGE_QUEUE_MP_PACKET_SIZE.
<font color='#006600'>diff -u rtems/cpukit/score/src/threadhandler.c:1.36 rtems/cpukit/score/src/threadhandler.c:1.37
--- rtems/cpukit/score/src/threadhandler.c:1.36 Mon Aug 29 16:30:32 2011
+++ rtems/cpukit/score/src/threadhandler.c Fri Sep 9 06:25:23 2011
</font><font color='#997700'>@@ -89,8 +89,8 @@
</font> ISR_Level level;
Thread_Control *executing;
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
<font color='#880000'>- static char doneConstructors;
- char doneCons;
</font><font color='#000088'>+ static bool doneConstructors;
+ bool doCons;
</font> #endif
executing = _Thread_Executing;
<font color='#997700'>@@ -110,8 +110,15 @@
</font> _ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
<font color='#880000'>- doneCons = doneConstructors;
- doneConstructors = 1;
</font><font color='#000088'>+ #if defined(RTEMS_MULTIPROCESSING)
+ doCons = !doneConstructors
+ && _Objects_Get_API( executing->Object.id ) != OBJECTS_INTERNAL_API;
+ if (doCons)
+ doneConstructors = true;
+ #else
+ doCons = !doneConstructors;
+ doneConstructors = true;
+ #endif
</font> #endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
<font color='#997700'>@@ -143,7 +150,7 @@
</font> * in any configuration I know of and it generates a warning on every
* RTEMS target configuration. --joel (12 May 2007)
*/
<font color='#880000'>- if (!doneCons) /* && (volatile void *)_init) */ {
</font><font color='#000088'>+ if (doCons) /* && (volatile void *)_init) */ {
</font> INIT_NAME ();
#if defined(RTEMS_SMP)
</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>