change log for rtems (2011-04-07)
rtems-vc at rtems.org
rtems-vc at rtems.org
Thu Apr 7 20:12:05 UTC 2011
*joel*:
2011-04-07 Joel Sherrill <joel.sherrill at oarcorp.com>
* Makefile.am, wkspace.c: Compiles now and do not core dump when RTEMS
is not initialized.
M 1.4 tools/schedsim/rtems/ChangeLog
M 1.2 tools/schedsim/rtems/Makefile.am
M 1.2 tools/schedsim/rtems/wkspace.c
diff -u rtems/tools/schedsim/rtems/ChangeLog:1.3 rtems/tools/schedsim/rtems/ChangeLog:1.4
--- rtems/tools/schedsim/rtems/ChangeLog:1.3 Mon Feb 28 15:58:36 2011
+++ rtems/tools/schedsim/rtems/ChangeLog Thu Apr 7 13:12:39 2011
@@ -1,3 +1,8 @@
+2011-04-07 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * Makefile.am, wkspace.c: Compiles now and do not core dump when RTEMS
+ is not initialized.
+
2011-02-28 Joel Sherrill <joel.sherrill at oarcorp.com>
* sched_cpu/rtems/score/cpuopts.h: Bump to 4.10.99.0
diff -u rtems/tools/schedsim/rtems/Makefile.am:1.1 rtems/tools/schedsim/rtems/Makefile.am:1.2
--- rtems/tools/schedsim/rtems/Makefile.am:1.1 Fri Dec 17 08:51:56 2010
+++ rtems/tools/schedsim/rtems/Makefile.am Thu Apr 7 13:12:39 2011
@@ -75,14 +75,27 @@
librtems_a_SOURCES += $(cpukitdir)/score/src/objectsetname.c
librtems_a_SOURCES += $(cpukitdir)/score/src/objectshrinkinformation.c
librtems_a_SOURCES += $(cpukitdir)/score/src/scheduler.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriority.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityallocate.c
librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityblock.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerprioritythreadschedulerallocate.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerprioritythreadschedulerfree.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerprioritythreadschedulerupdate.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriority.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityenqueue.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityenqueuefirst.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityextract.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityfree.c
librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityschedule.c
librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityunblock.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityupdate.c
librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityyield.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleblock.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimple.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleenqueue.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleenqueuefirst.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleextract.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimplereadyqueueenqueue.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimplereadyqueueenqueuefirst.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleschedule.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleunblock.c
+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleyield.c
librtems_a_SOURCES += $(cpukitdir)/score/src/thread.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadchangepriority.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadclearstate.c
@@ -97,7 +110,6 @@
librtems_a_SOURCES += $(cpukitdir)/score/src/threadready.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadreset.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadrestart.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/threadresume.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadsetpriority.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadsetstate.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadsettransient.c
@@ -105,7 +117,6 @@
librtems_a_SOURCES += $(cpukitdir)/score/src/threadstackfree.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadstart.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadstartmultitasking.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/threadsuspend.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadtickletimeslice.c
librtems_a_SOURCES += $(cpukitdir)/score/src/iterateoverthreads.c
librtems_a_SOURCES += $(cpukitdir)/score/src/threadq.c
@@ -224,6 +235,7 @@
${cpukitdir}/score/include//rtems/seterr.h \
${cpukitdir}/score/include/rtems/system.h \
${cpukitdir}/score/include/rtems/debug.h \
+ ${cpukitdir}/score/include/rtems/bspsmp.h \
${cpukitdir}/include/rtems/bspIo.h \
$(cpukitdir)/sapi/include/rtems/fatal.h \
$(cpukitdir)/sapi/include/rtems/init.h \
diff -u rtems/tools/schedsim/rtems/wkspace.c:1.1 rtems/tools/schedsim/rtems/wkspace.c:1.2
--- rtems/tools/schedsim/rtems/wkspace.c:1.1 Fri Dec 17 08:51:56 2010
+++ rtems/tools/schedsim/rtems/wkspace.c Thu Apr 7 13:12:39 2011
@@ -60,7 +60,7 @@
/*
* _Workspace_Free
*/
-bool _Workspace_Free(
+void _Workspace_Free(
void *block
)
{
@@ -73,7 +73,6 @@
);
#endif
free( block );
- return true;
}
/*
*joel*:
2011-04-07 Joel Sherrill <joel.sherrill at oarcorp.com>
* shared/main_clocktick.c, shared/main_semcreate.c,
shared/main_semdelete.c, shared/main_semflush.c,
shared/main_semobtain.c, shared/main_semrelease.c,
shared/main_taskcreate.c, shared/main_taskdelete.c,
shared/main_taskmode.c, shared/main_taskpriority.c,
shared/main_taskresume.c, shared/main_tasksuspend.c,
shared/main_taskwakeafter.c, shared/schedsim_shell.h: Compiles now
and do not core dump when RTEMS is not initialized.
M 1.2 tools/schedsim/shell/ChangeLog
M 1.2 tools/schedsim/shell/shared/main_clocktick.c
M 1.2 tools/schedsim/shell/shared/main_semcreate.c
M 1.2 tools/schedsim/shell/shared/main_semdelete.c
M 1.2 tools/schedsim/shell/shared/main_semflush.c
M 1.2 tools/schedsim/shell/shared/main_semobtain.c
M 1.2 tools/schedsim/shell/shared/main_semrelease.c
M 1.2 tools/schedsim/shell/shared/main_taskcreate.c
M 1.2 tools/schedsim/shell/shared/main_taskdelete.c
M 1.2 tools/schedsim/shell/shared/main_taskmode.c
M 1.2 tools/schedsim/shell/shared/main_taskpriority.c
M 1.2 tools/schedsim/shell/shared/main_taskresume.c
M 1.2 tools/schedsim/shell/shared/main_tasksuspend.c
M 1.2 tools/schedsim/shell/shared/main_taskwakeafter.c
M 1.2 tools/schedsim/shell/shared/schedsim_shell.h
diff -u rtems/tools/schedsim/shell/ChangeLog:1.1 rtems/tools/schedsim/shell/ChangeLog:1.2
--- rtems/tools/schedsim/shell/ChangeLog:1.1 Fri Dec 17 08:49:38 2010
+++ rtems/tools/schedsim/shell/ChangeLog Thu Apr 7 13:12:41 2011
@@ -1,3 +1,14 @@
+2011-04-07 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * shared/main_clocktick.c, shared/main_semcreate.c,
+ shared/main_semdelete.c, shared/main_semflush.c,
+ shared/main_semobtain.c, shared/main_semrelease.c,
+ shared/main_taskcreate.c, shared/main_taskdelete.c,
+ shared/main_taskmode.c, shared/main_taskpriority.c,
+ shared/main_taskresume.c, shared/main_tasksuspend.c,
+ shared/main_taskwakeafter.c, shared/schedsim_shell.h: Compiles now
+ and do not core dump when RTEMS is not initialized.
+
2010-12-17 Joel Sherrill <joel.sherrill at oarcorp.com>
Jennifer Averett <jennifer.averett at oarcorp.com>
diff -u rtems/tools/schedsim/shell/shared/main_clocktick.c:1.1 rtems/tools/schedsim/shell/shared/main_clocktick.c:1.2
--- rtems/tools/schedsim/shell/shared/main_clocktick.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_clocktick.c Thu Apr 7 13:12:41 2011
@@ -33,6 +33,8 @@
unsigned long tmp;
rtems_interval t;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage ticks\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_semcreate.c:1.1 rtems/tools/schedsim/shell/shared/main_semcreate.c:1.2
--- rtems/tools/schedsim/shell/shared/main_semcreate.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_semcreate.c Thu Apr 7 13:12:41 2011
@@ -41,6 +41,8 @@
char option;
int value;
+ CHECK_RTEMS_IS_UP();
+
ceiling = 0;
attr = RTEMS_DEFAULT_ATTRIBUTES;
value = 0;
diff -u rtems/tools/schedsim/shell/shared/main_semdelete.c:1.1 rtems/tools/schedsim/shell/shared/main_semdelete.c:1.2
--- rtems/tools/schedsim/shell/shared/main_semdelete.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_semdelete.c Thu Apr 7 13:12:41 2011
@@ -31,6 +31,8 @@
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_semflush.c:1.1 rtems/tools/schedsim/shell/shared/main_semflush.c:1.2
--- rtems/tools/schedsim/shell/shared/main_semflush.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_semflush.c Thu Apr 7 13:12:41 2011
@@ -31,6 +31,8 @@
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_semobtain.c:1.1 rtems/tools/schedsim/shell/shared/main_semobtain.c:1.2
--- rtems/tools/schedsim/shell/shared/main_semobtain.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_semobtain.c Thu Apr 7 13:12:41 2011
@@ -36,6 +36,8 @@
/* XXX for now, do not support polling */
+ CHECK_RTEMS_IS_UP();
+
if (argc != 3) {
fprintf( stderr, "%s: Usage name|id timeout\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_semrelease.c:1.1 rtems/tools/schedsim/shell/shared/main_semrelease.c:1.2
--- rtems/tools/schedsim/shell/shared/main_semrelease.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_semrelease.c Thu Apr 7 13:12:41 2011
@@ -31,6 +31,8 @@
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_taskcreate.c:1.1 rtems/tools/schedsim/shell/shared/main_taskcreate.c:1.2
--- rtems/tools/schedsim/shell/shared/main_taskcreate.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_taskcreate.c Thu Apr 7 13:12:41 2011
@@ -39,6 +39,8 @@
rtems_status_code status;
long priority;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 3) {
fprintf( stderr, "%s: Usage name priority\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_taskdelete.c:1.1 rtems/tools/schedsim/shell/shared/main_taskdelete.c:1.2
--- rtems/tools/schedsim/shell/shared/main_taskdelete.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_taskdelete.c Thu Apr 7 13:12:41 2011
@@ -31,6 +31,8 @@
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_taskmode.c:1.1 rtems/tools/schedsim/shell/shared/main_taskmode.c:1.2
--- rtems/tools/schedsim/shell/shared/main_taskmode.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_taskmode.c Thu Apr 7 13:12:41 2011
@@ -52,6 +52,8 @@
struct getopt_data getopt_reent;
char option;
+ CHECK_RTEMS_IS_UP();
+
mode = 0;
mask = 0;
memset(&getopt_reent, 0, sizeof(getopt_data));
diff -u rtems/tools/schedsim/shell/shared/main_taskpriority.c:1.1 rtems/tools/schedsim/shell/shared/main_taskpriority.c:1.2
--- rtems/tools/schedsim/shell/shared/main_taskpriority.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_taskpriority.c Thu Apr 7 13:12:41 2011
@@ -34,6 +34,8 @@
rtems_task_priority old;
rtems_task_priority new;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 3) {
fprintf( stderr, "%s: Usage [name|id] priority\n", argv[0] );
return -1;
@@ -42,7 +44,7 @@
if ( lookup_task( argv[1], &id ) )
return -1;
- if ( rtems_string_to_unsigned_long( argv[1], &tmp, NULL, 0) ) {
+ if ( rtems_string_to_unsigned_long( argv[2], &tmp, NULL, 0) ) {
fprintf( stderr, "Argument (%s) is not a number\n", argv[2] );
return 1;
}
@@ -63,7 +65,10 @@
return -1;
}
- printf("Task (0x%08x) Chain Priority from %d to %d\n", id, old, new );
+ if ( new != 0 )
+ printf("Task (0x%08x) Change Priority from %d to %d\n", id, old, new );
+ else
+ printf("Task (0x%08x) Current Priority is %d\n", id, new );
return 0;
}
diff -u rtems/tools/schedsim/shell/shared/main_taskresume.c:1.1 rtems/tools/schedsim/shell/shared/main_taskresume.c:1.2
--- rtems/tools/schedsim/shell/shared/main_taskresume.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_taskresume.c Thu Apr 7 13:12:41 2011
@@ -31,6 +31,8 @@
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_tasksuspend.c:1.1 rtems/tools/schedsim/shell/shared/main_tasksuspend.c:1.2
--- rtems/tools/schedsim/shell/shared/main_tasksuspend.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_tasksuspend.c Thu Apr 7 13:12:41 2011
@@ -31,6 +31,8 @@
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/main_taskwakeafter.c:1.1 rtems/tools/schedsim/shell/shared/main_taskwakeafter.c:1.2
--- rtems/tools/schedsim/shell/shared/main_taskwakeafter.c:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/main_taskwakeafter.c Thu Apr 7 13:12:41 2011
@@ -33,6 +33,8 @@
unsigned long tmp;
rtems_id self;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage ticks\n", argv[0] );
return -1;
diff -u rtems/tools/schedsim/shell/shared/schedsim_shell.h:1.1 rtems/tools/schedsim/shell/shared/schedsim_shell.h:1.2
--- rtems/tools/schedsim/shell/shared/schedsim_shell.h:1.1 Fri Dec 17 08:49:39 2010
+++ rtems/tools/schedsim/shell/shared/schedsim_shell.h Thu Apr 7 13:12:41 2011
@@ -20,6 +20,14 @@
extern "C" {
#endif
+#define CHECK_RTEMS_IS_UP() \
+ do { \
+ if ( _System_state_Current != SYSTEM_STATE_UP ) { \
+ fprintf( stderr, "RTEMS is not initialized yet\n" ); \
+ return -1; \
+ } \
+ } while (0)
+
void PRINT_EXECUTING(void);
void PRINT_HEIR(void);
*joel*:
2011-04-07 Joel Sherrill <joel.sherrill at oarcorp.com>
* README: New file.
M 1.4 tools/schedsim/ChangeLog
A 1.1 tools/schedsim/README
diff -u rtems/tools/schedsim/ChangeLog:1.3 rtems/tools/schedsim/ChangeLog:1.4
--- rtems/tools/schedsim/ChangeLog:1.3 Wed Feb 2 09:01:43 2011
+++ rtems/tools/schedsim/ChangeLog Thu Apr 7 13:20:32 2011
@@ -1,3 +1,7 @@
+2011-04-07 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * README: New file.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u /dev/null rtems/tools/schedsim/README:1.1
--- /dev/null Thu Apr 7 15:12:05 2011
+++ rtems/tools/schedsim/README Thu Apr 7 13:20:32 2011
@@ -0,0 +1,100 @@
+#
+# $Id$
+#
+
+This is a simulation shell which wraps parts of the RTEMS SuperCore
+and provides a way to test scheduler implementations.
+
+The following commands are currently available
+
+echo
+help
+exit
+
+rtems_init
+
+task_create name priority
+task_delete name|id
+task_mode [-tTpP]
+ -t - disable timeslicing
+ -T - enable timeslicing
+ -t - disable preemption
+ -T - enable enable
+task_priority name|id priority
+task_resume name|id
+task_suspend name|id
+task_wake_after ticks
+
+clock_tick ticks
+
+@
+
+
+1.6
+log
+ at 2010-04-08 Joel Sherrill <joel.sherrill@@oarcorp.com>
+
+ * README: Add task suspend and resume.
+@
+text
+ at d2 1
+a2 1
+# $Id$
+d17 1
+a17 1
+task_delete [name|id]
+d23 3
+a25 3
+task_set_priority [name|id] priority
+task_resume [name|id]
+task_suspend [name|id]
+d30 15
+@
+
+
+1.5
+log
+ at 2010-04-08 Joel Sherrill <joel.sherrill@@oarcorp.com>
+
+ * README: Added task_mode command.
+@
+text
+ at d2 1
+a2 1
+# $Id$
+d17 1
+d24 2
+a26 1
+task_delete [name|id]
+@
+
+
+1.4
+log
+ at 2010-04-08 Joel Sherrill <joel.sherrill@@oarcorp.com>
+
+ * README: Add task set priority, task wake after, and clock tick.
+@
+text
+ at d2 1
+semaphore_create [-bcsfpiC:V:] name
+ -b - binary mutex
+ -c - counting semaphore
+ -s - simple binary semaphore
+ -f - FIFO Blocking
+ -p - Priority Blocking
+ -i - Priority Inheritance
+ -C priority - Priority Ceiling and priority
+ -V initial - Initial value (default=0)
+semaphore_delete name|id
+semaphore_obtain name|id ticks
+ NOTE: no polling supported yet
+semaphore_release name|id
+semaphore_flush name|id
+
+executing
+heir
+
+The task names are of Classic API form. They can be up to four characters.
+They should not start with "0" since that is the test used to determine if
+it is a hexadecimal task id.
--
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/20110407/88719c61/attachment-0001.html>
More information about the vc
mailing list