change log for rtems (2010-11-25)
rtems-vc at rtems.org
rtems-vc at rtems.org
Thu Nov 25 13:10:35 UTC 2010
*sh*:
2010-11-25 Sebastian Huber <sebastian.huber at embedded-brains.de>
* spchain/init.c, spchain/spchain.scn: More test cases.
M 1.426 testsuites/sptests/ChangeLog
M 1.7 testsuites/sptests/spchain/init.c
M 1.4 testsuites/sptests/spchain/spchain.scn
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
@@ -1,3 +1,7 @@
+2010-11-25 Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+ * spchain/init.c, spchain/spchain.scn: More test cases.
+
2010-11-24 Gedare Bloom <giddyup44 at yahoo.com>
PR 1647/cpukit
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
@@ -20,6 +20,24 @@
int id;
} test_node;
+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 );
+}
+
static void test_chain_get_with_wait(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
@@ -158,6 +176,8 @@
test_chain_with_empty_check();
test_chain_with_notification();
test_chain_get_with_wait();
+ test_chain_control_layout();
+ test_chain_control_initializer();
puts( "*** END OF RTEMS CHAIN API TEST ***" );
rtems_test_exit(0);
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
@@ -8,4 +8,6 @@
INIT - Verify rtems_chain_prepend_with_notification
INIT - Verify rtems_chain_get_with_notification
INIT - Verify rtems_chain_get_with_wait
+INIT - Verify rtems_chain_control layout
+INIT - Verify rtems_chain_control initializer
*** END OF RTEMS CHAIN API TEST ***
*sh*:
2010-11-25 Sebastian Huber <sebastian.huber at embedded-brains.de>
* score/include/rtems/score/scheduler.h,
score/include/rtems/score/schedulerpriority.h: Whitespace removal.
Moved C++ extern directive.
M 1.2658 cpukit/ChangeLog
M 1.2 cpukit/score/include/rtems/score/scheduler.h
M 1.2 cpukit/score/include/rtems/score/schedulerpriority.h
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
@@ -1,5 +1,11 @@
2010-11-25 Sebastian Huber <sebastian.huber at embedded-brains.de>
+ * 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 at embedded-brains.de>
+
PR 1711/cpukit
* score/inline/rtems/score/chain.inl, score/src/chain.c: New functions
_Chain_Immutable_head(), _Chain_Immutable_tail(),
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
@@ -18,6 +18,15 @@
#ifndef _RTEMS_SCORE_SCHEDULER_H
#define _RTEMS_SCORE_SCHEDULER_H
+#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
+
/**
* @defgroup ScoreScheduler Scheduler Handler
*
@@ -26,19 +35,10 @@
*/
/**@{*/
-#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>
-
-/*
- * These defines are used to set the scheduler_policy value. The values
+/*
+ * These defines are used to set the scheduler_policy value. The values
* must correspond directly with the order of the fields in the scheduler
- * table (Scheduler_Table_t), because the Configuration.scheduler_policy
+ * table (Scheduler_Table_t), because the Configuration.scheduler_policy
* field is used to index the scheduler table.
*/
#define _Scheduler_USER (0)
@@ -47,8 +47,8 @@
typedef struct Scheduler_Control_struct Scheduler_Control;
/*
- * 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
+ * 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
* policy.
*/
typedef struct {
@@ -56,13 +56,13 @@
} Scheduler_Table_t;
/* instantiated and initialized in confdefs.h */
-extern const Scheduler_Table_t _Scheduler_Table[];
+extern const Scheduler_Table_t _Scheduler_Table[];
/**
- * The following Scheduler_Per_thread_xxx structures are used to
- * hold per-thread data used by the scheduler. Thread_Control->scheduler is a
+ * The following Scheduler_Per_thread_xxx structures are used to
+ * hold per-thread data used by the scheduler. Thread_Control->scheduler is a
* union of pointers, one for each of the following structures. The
- * scheduler->xxx field points to an instantion of one of these structures,
+ * scheduler->xxx field points to an instantion of one of these structures,
* which is allocated from the workspace during _Thread_Start.
*/
@@ -78,7 +78,7 @@
} Scheduler_priority_Per_thread;
/**
- * function jump table that holds pointers to the functions that
+ * function jump table that holds pointers to the functions that
* implement specific schedulers.
*/
typedef struct {
@@ -99,8 +99,8 @@
/** frees the scheduler field of the given thread */
void ( *scheduler_free ) ( Scheduler_Control *, Thread_Control * );
-
- /** updates the scheduler field of the given thread -- primarily used
+
+ /** updates the scheduler field of the given thread -- primarily used
* when changing the thread's priority. */
void ( *scheduler_update ) ( Scheduler_Control *, Thread_Control * );
} Scheduler_Operations;
@@ -109,15 +109,15 @@
* This is the structure used to manage the scheduler.
*/
struct Scheduler_Control_struct {
- /**
- * 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
+ /**
+ * 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
* ready queue required by the scheduler.
*/
union {
- /**
- * This is the set of lists (an array of Chain_Control) for
- * priority scheduling.
+ /**
+ * This is the set of lists (an array of Chain_Control) for
+ * priority scheduling.
*/
Chain_Control *Priority;
@@ -136,7 +136,7 @@
SCORE_EXTERN Scheduler_Control _Scheduler;
/**
- * This routine initializes the scheduler to the policy chosen by the user
+ * This routine initializes the scheduler to the policy chosen by the user
* through confdefs, or to the priority scheduler with ready chains by
* default.
*/
@@ -146,11 +146,11 @@
#include <rtems/score/scheduler.inl>
#endif
+/**@}*/
+
#ifdef __cplusplus
}
#endif
-/**@}*/
-
#endif
/* end of include file */
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
@@ -18,22 +18,22 @@
#ifndef _RTEMS_SCORE_SCHEDULERPRIORITY_H
#define _RTEMS_SCORE_SCHEDULERPRIORITY_H
-/**
- * @addtogroup ScoreScheduler
- *
- */
-/**@{*/
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#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>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @addtogroup ScoreScheduler
+ *
+ */
+/**@{*/
+
/**
* This routine initializes the priority scheduler.
*/
--
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/20101125/6df6069d/attachment-0001.html>
More information about the vc
mailing list