<!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 (2010-11-25)</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>2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* spchain/init.c, spchain/spchain.scn: More test cases.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.425&r2=text&tr2=1.426&diff_format=h">M</a></td><td width='1%'>1.426</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spchain/init.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>testsuites/sptests/spchain/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spchain/spchain.scn.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/sptests/spchain/spchain.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.425 rtems/testsuites/sptests/ChangeLog:1.426
--- rtems/testsuites/sptests/ChangeLog:1.425 Wed Nov 24 10:06:22 2010
+++ rtems/testsuites/sptests/ChangeLog Thu Nov 25 06:38:56 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * spchain/init.c, spchain/spchain.scn: More test cases.
+
</font> 2010-11-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1647/cpukit
<font color='#006600'>diff -u rtems/testsuites/sptests/spchain/init.c:1.6 rtems/testsuites/sptests/spchain/init.c:1.7
--- rtems/testsuites/sptests/spchain/init.c:1.6 Mon Oct 25 23:22:55 2010
+++ rtems/testsuites/sptests/spchain/init.c Thu Nov 25 06:38:57 2010
</font><font color='#997700'>@@ -20,6 +20,24 @@
</font> int id;
} test_node;
<font color='#000088'>+static void test_chain_control_initializer(void)
+{
+ rtems_chain_control chain = RTEMS_CHAIN_INITIALIZER_EMPTY( chain );
+ puts( "INIT - Verify rtems_chain_control initializer" );
+ rtems_test_assert( rtems_chain_is_empty( &chain ) );
+}
+
+static void test_chain_control_layout(void)
+{
+ rtems_chain_control chain;
+ puts( "INIT - Verify rtems_chain_control layout" );
+ rtems_test_assert(
+ sizeof(rtems_chain_control)
+ == sizeof(rtems_chain_node) + sizeof(rtems_chain_node *)
+ );
+ rtems_test_assert( &chain.Head.Node.previous == &chain.Tail.Node.next );
+}
+
</font> static void test_chain_get_with_wait(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
<font color='#997700'>@@ -158,6 +176,8 @@
</font> test_chain_with_empty_check();
test_chain_with_notification();
test_chain_get_with_wait();
<font color='#000088'>+ test_chain_control_layout();
+ test_chain_control_initializer();
</font>
puts( "*** END OF RTEMS CHAIN API TEST ***" );
rtems_test_exit(0);
<font color='#006600'>diff -u rtems/testsuites/sptests/spchain/spchain.scn:1.3 rtems/testsuites/sptests/spchain/spchain.scn:1.4
--- rtems/testsuites/sptests/spchain/spchain.scn:1.3 Tue Aug 24 10:01:04 2010
+++ rtems/testsuites/sptests/spchain/spchain.scn Thu Nov 25 06:38:57 2010
</font><font color='#997700'>@@ -8,4 +8,6 @@
</font> INIT - Verify rtems_chain_prepend_with_notification
INIT - Verify rtems_chain_get_with_notification
INIT - Verify rtems_chain_get_with_wait
<font color='#000088'>+INIT - Verify rtems_chain_control layout
+INIT - Verify rtems_chain_control initializer
</font> *** END OF RTEMS CHAIN API TEST ***
</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>2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/scheduler.h,
score/include/rtems/score/schedulerpriority.h: Whitespace removal.
Moved C++ extern directive.
</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.2657&r2=text&tr2=1.2658&diff_format=h">M</a></td><td width='1%'>1.2658</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/include/rtems/score/scheduler.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/include/rtems/score/scheduler.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/schedulerpriority.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/include/rtems/score/schedulerpriority.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2657 rtems/cpukit/ChangeLog:1.2658
--- rtems/cpukit/ChangeLog:1.2657 Thu Nov 25 05:48:10 2010
+++ rtems/cpukit/ChangeLog Thu Nov 25 06:42:50 2010
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
<font color='#000088'>+ * score/include/rtems/score/scheduler.h,
+ score/include/rtems/score/schedulerpriority.h: Whitespace removal.
+ Moved C++ extern directive.
+
+2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
</font> PR 1711/cpukit
* score/inline/rtems/score/chain.inl, score/src/chain.c: New functions
_Chain_Immutable_head(), _Chain_Immutable_tail(),
<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/scheduler.h:1.1 rtems/cpukit/score/include/rtems/score/scheduler.h:1.2
--- rtems/cpukit/score/include/rtems/score/scheduler.h:1.1 Wed Nov 24 09:51:27 2010
+++ rtems/cpukit/score/include/rtems/score/scheduler.h Thu Nov 25 06:42:50 2010
</font><font color='#997700'>@@ -18,6 +18,15 @@
</font> #ifndef _RTEMS_SCORE_SCHEDULER_H
#define _RTEMS_SCORE_SCHEDULER_H
<font color='#000088'>+#include <rtems/score/percpu.h>
+#include <rtems/score/chain.h>
+#include <rtems/score/priority.h>
+#include <rtems/score/prioritybitmap.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
</font> /**
* @defgroup ScoreScheduler Scheduler Handler
*
<font color='#997700'>@@ -26,19 +35,10 @@
</font> */
/**@{*/
<font color='#880000'>-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <rtems/score/percpu.h>
-#include <rtems/score/chain.h>
-#include <rtems/score/priority.h>
-#include <rtems/score/prioritybitmap.h>
-
-/*<span style="background-color: #FF0000"> </span>
- * These defines are used to set the scheduler_policy value. The values<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+/*
+ * These defines are used to set the scheduler_policy value. The values
</font> * must correspond directly with the order of the fields in the scheduler
<font color='#880000'>- * table (Scheduler_Table_t), because the Configuration.scheduler_policy<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * table (Scheduler_Table_t), because the Configuration.scheduler_policy
</font> * field is used to index the scheduler table.
*/
#define _Scheduler_USER (0)
<font color='#997700'>@@ -47,8 +47,8 @@
</font> typedef struct Scheduler_Control_struct Scheduler_Control;
/*
<font color='#880000'>- * The Scheduler_Table_t type defines the scheduler initialization table,<span style="background-color: #FF0000"> </span>
- * which is set up by confdefs.h based on the user's choice of scheduler<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * The Scheduler_Table_t type defines the scheduler initialization table,
+ * which is set up by confdefs.h based on the user's choice of scheduler
</font> * policy.
*/
typedef struct {
<font color='#997700'>@@ -56,13 +56,13 @@
</font> } Scheduler_Table_t;
/* instantiated and initialized in confdefs.h */
<font color='#880000'>-extern const Scheduler_Table_t _Scheduler_Table[];<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+extern const Scheduler_Table_t _Scheduler_Table[];
</font>
/**
<font color='#880000'>- * The following Scheduler_Per_thread_xxx structures are used to<span style="background-color: #FF0000"> </span>
- * hold per-thread data used by the scheduler. Thread_Control->scheduler is a<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * The following Scheduler_Per_thread_xxx structures are used to
+ * hold per-thread data used by the scheduler. Thread_Control->scheduler is a
</font> * union of pointers, one for each of the following structures. The
<font color='#880000'>- * scheduler->xxx field points to an instantion of one of these structures,<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * scheduler->xxx field points to an instantion of one of these structures,
</font> * which is allocated from the workspace during _Thread_Start.
*/
<font color='#997700'>@@ -78,7 +78,7 @@
</font> } Scheduler_priority_Per_thread;
/**
<font color='#880000'>- * function jump table that holds pointers to the functions that<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * function jump table that holds pointers to the functions that
</font> * implement specific schedulers.
*/
typedef struct {
<font color='#997700'>@@ -99,8 +99,8 @@
</font>
/** frees the scheduler field of the given thread */
void ( *scheduler_free ) ( Scheduler_Control *, Thread_Control * );
<font color='#880000'>-<span style="background-color: #FF0000"> </span>
- /** updates the scheduler field of the given thread -- primarily used<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+
+ /** updates the scheduler field of the given thread -- primarily used
</font> * when changing the thread's priority. */
void ( *scheduler_update ) ( Scheduler_Control *, Thread_Control * );
} Scheduler_Operations;
<font color='#997700'>@@ -109,15 +109,15 @@
</font> * This is the structure used to manage the scheduler.
*/
struct Scheduler_Control_struct {
<font color='#880000'>- /**<span style="background-color: #FF0000"> </span>
- * This union contains the pointer to the data structure used to manage<span style="background-color: #FF0000"> </span>
- * the ready set of tasks. The pointer varies based upon the type of<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ /**
+ * This union contains the pointer to the data structure used to manage
+ * the ready set of tasks. The pointer varies based upon the type of
</font> * ready queue required by the scheduler.
*/
union {
<font color='#880000'>- /**<span style="background-color: #FF0000"> </span>
- * This is the set of lists (an array of Chain_Control) for<span style="background-color: #FF0000"> </span>
- * priority scheduling.<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ /**
+ * This is the set of lists (an array of Chain_Control) for
+ * priority scheduling.
</font> */
Chain_Control *Priority;
<font color='#997700'>@@ -136,7 +136,7 @@
</font> SCORE_EXTERN Scheduler_Control _Scheduler;
/**
<font color='#880000'>- * This routine initializes the scheduler to the policy chosen by the user<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>+ * This routine initializes the scheduler to the policy chosen by the user
</font> * through confdefs, or to the priority scheduler with ready chains by
* default.
*/
<font color='#997700'>@@ -146,11 +146,11 @@
</font> #include <rtems/score/scheduler.inl>
#endif
<font color='#000088'>+/**@}*/
+
</font> #ifdef __cplusplus
}
#endif
<font color='#880000'>-/**@}*/
-
</font> #endif
/* end of include file */
<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/schedulerpriority.h:1.1 rtems/cpukit/score/include/rtems/score/schedulerpriority.h:1.2
--- rtems/cpukit/score/include/rtems/score/schedulerpriority.h:1.1 Wed Nov 24 09:51:27 2010
+++ rtems/cpukit/score/include/rtems/score/schedulerpriority.h Thu Nov 25 06:42:50 2010
</font><font color='#997700'>@@ -18,22 +18,22 @@
</font> #ifndef _RTEMS_SCORE_SCHEDULERPRIORITY_H
#define _RTEMS_SCORE_SCHEDULERPRIORITY_H
<font color='#880000'>-/**
- * @addtogroup ScoreScheduler
- *
- */
-/**@{*/
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
</font> #include <rtems/score/chain.h>
#include <rtems/score/priority.h>
#include <rtems/score/percpu.h>
#include <rtems/score/scheduler.h>
#include <rtems/score/wkspace.h>
<font color='#000088'>+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @addtogroup ScoreScheduler
+ *
+ */
+/**@{*/
+
</font> /**
* This routine initializes the priority scheduler.
*/
</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>