<!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-04-07)</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, wkspace.c: Compiles now and do not core dump when RTEMS
        is not initialized.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/rtems/ChangeLog.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%'>tools/schedsim/rtems/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/rtems/Makefile.am.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%'>tools/schedsim/rtems/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/rtems/wkspace.c.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%'>tools/schedsim/rtems/wkspace.c</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-04-07    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * Makefile.am, wkspace.c: Compiles now and do not core dump when RTEMS
+       is not initialized.
+
</font> 2011-02-28        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * sched_cpu/rtems/score/cpuopts.h: Bump to 4.10.99.0

<font color='#006600'>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
</font><font color='#997700'>@@ -75,14 +75,27 @@
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/objectsetname.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/objectshrinkinformation.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/scheduler.c
<font color='#880000'>-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriority.c
</font><font color='#000088'>+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityallocate.c
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityblock.c
<font color='#880000'>-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerprioritythreadschedulerallocate.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerprioritythreadschedulerfree.c
-librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerprioritythreadschedulerupdate.c
</font><font color='#000088'>+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
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityschedule.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityunblock.c
<font color='#000088'>+librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityupdate.c
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/schedulerpriorityyield.c
<font color='#000088'>+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
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/thread.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadchangepriority.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadclearstate.c
<font color='#997700'>@@ -97,7 +110,6 @@
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/threadready.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadreset.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadrestart.c
<font color='#880000'>-librtems_a_SOURCES += $(cpukitdir)/score/src/threadresume.c
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/threadsetpriority.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadsetstate.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadsettransient.c
<font color='#997700'>@@ -105,7 +117,6 @@
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/threadstackfree.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadstart.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadstartmultitasking.c
<font color='#880000'>-librtems_a_SOURCES += $(cpukitdir)/score/src/threadsuspend.c
</font> librtems_a_SOURCES += $(cpukitdir)/score/src/threadtickletimeslice.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/iterateoverthreads.c
 librtems_a_SOURCES += $(cpukitdir)/score/src/threadq.c
<font color='#997700'>@@ -224,6 +235,7 @@
</font>   ${cpukitdir}/score/include//rtems/seterr.h \
   ${cpukitdir}/score/include/rtems/system.h \
   ${cpukitdir}/score/include/rtems/debug.h \
<font color='#000088'>+  ${cpukitdir}/score/include/rtems/bspsmp.h \
</font>   ${cpukitdir}/include/rtems/bspIo.h \
   $(cpukitdir)/sapi/include/rtems/fatal.h \
   $(cpukitdir)/sapi/include/rtems/init.h \

<font color='#006600'>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
</font><font color='#997700'>@@ -60,7 +60,7 @@
</font> /*
  *  _Workspace_Free
  */
<font color='#880000'>-bool _Workspace_Free(
</font><font color='#000088'>+void _Workspace_Free(
</font>   void *block
 )
 {
<font color='#997700'>@@ -73,7 +73,6 @@
</font>     );
   #endif
   free( block );
<font color='#880000'>-  return true;
</font> }
 
 /*
</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-04-07 Joel Sherrill <joel.sherrill@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/ChangeLog.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%'>tools/schedsim/shell/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_clocktick.c.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%'>tools/schedsim/shell/shared/main_clocktick.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_semcreate.c.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%'>tools/schedsim/shell/shared/main_semcreate.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_semdelete.c.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%'>tools/schedsim/shell/shared/main_semdelete.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_semflush.c.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%'>tools/schedsim/shell/shared/main_semflush.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_semobtain.c.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%'>tools/schedsim/shell/shared/main_semobtain.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_semrelease.c.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%'>tools/schedsim/shell/shared/main_semrelease.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_taskcreate.c.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%'>tools/schedsim/shell/shared/main_taskcreate.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_taskdelete.c.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%'>tools/schedsim/shell/shared/main_taskdelete.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_taskmode.c.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%'>tools/schedsim/shell/shared/main_taskmode.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_taskpriority.c.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%'>tools/schedsim/shell/shared/main_taskpriority.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_taskresume.c.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%'>tools/schedsim/shell/shared/main_taskresume.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_tasksuspend.c.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%'>tools/schedsim/shell/shared/main_tasksuspend.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/main_taskwakeafter.c.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%'>tools/schedsim/shell/shared/main_taskwakeafter.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/shell/shared/schedsim_shell.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%'>tools/schedsim/shell/shared/schedsim_shell.h</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2011-04-07    Joel Sherrill <joel.sherrill@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.
+
</font> 2010-12-17        Joel Sherrill <joel.sherrill@oarcorp.com>
                Jennifer Averett <jennifer.averett@oarcorp.com>
 

<font color='#006600'>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
</font><font color='#997700'>@@ -33,6 +33,8 @@
</font>   unsigned long        tmp;
   rtems_interval       t;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage ticks\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -41,6 +41,8 @@
</font>   char                 option;
   int                  value;
 
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   ceiling = 0;
   attr    = RTEMS_DEFAULT_ATTRIBUTES;
   value   = 0;

<font color='#006600'>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
</font><font color='#997700'>@@ -31,6 +31,8 @@
</font>   rtems_id           id;
   rtems_status_code  status;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -31,6 +31,8 @@
</font>   rtems_id           id;
   rtems_status_code  status;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -36,6 +36,8 @@
</font>  
   /* XXX for now, do not support polling */
 
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 3) {
     fprintf( stderr, "%s: Usage name|id timeout\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -31,6 +31,8 @@
</font>   rtems_id           id;
   rtems_status_code  status;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -39,6 +39,8 @@
</font>   rtems_status_code  status;
   long               priority;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 3) {
     fprintf( stderr, "%s: Usage name priority\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -31,6 +31,8 @@
</font>   rtems_id           id;
   rtems_status_code  status;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -52,6 +52,8 @@
</font>   struct getopt_data getopt_reent;
   char               option;
 
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   mode = 0;
   mask = 0;
   memset(&getopt_reent, 0, sizeof(getopt_data));

<font color='#006600'>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
</font><font color='#997700'>@@ -34,6 +34,8 @@
</font>   rtems_task_priority  old;
   rtems_task_priority  new;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 3) {
     fprintf( stderr, "%s: Usage [name|id] priority\n", argv[0] );
     return -1;
<font color='#997700'>@@ -42,7 +44,7 @@
</font>   if ( lookup_task( argv[1], &id ) )
     return -1;
 
<font color='#880000'>-  if ( rtems_string_to_unsigned_long( argv[1], &tmp, NULL, 0) ) {
</font><font color='#000088'>+  if ( rtems_string_to_unsigned_long( argv[2], &tmp, NULL, 0) ) {
</font>     fprintf( stderr, "Argument (%s) is not a number\n", argv[2] );
     return 1;
   }
<font color='#997700'>@@ -63,7 +65,10 @@
</font>     return -1;
   }
 
<font color='#880000'>-  printf("Task (0x%08x) Chain Priority from %d to %d\n", id, old, new );
</font><font color='#000088'>+  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 );
</font>   
   return 0;
 }

<font color='#006600'>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
</font><font color='#997700'>@@ -31,6 +31,8 @@
</font>   rtems_id           id;
   rtems_status_code  status;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -31,6 +31,8 @@
</font>   rtems_id           id;
   rtems_status_code  status;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -33,6 +33,8 @@
</font>   unsigned long        tmp;
   rtems_id             self;
  
<font color='#000088'>+  CHECK_RTEMS_IS_UP();
+
</font>   if (argc != 2) {
     fprintf( stderr, "%s: Usage ticks\n", argv[0] );
     return -1;

<font color='#006600'>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
</font><font color='#997700'>@@ -20,6 +20,14 @@
</font> extern "C" {
 #endif
 
<font color='#000088'>+#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)
+
</font> void PRINT_EXECUTING(void);
 void PRINT_HEIR(void);
 
</pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>

        * README: New file.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/ChangeLog.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%'>tools/schedsim/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/schedsim/README?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">tools/schedsim/README</font></td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2011-04-07    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * README: New file.
+
</font> 2011-02-02        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * configure.ac: Require autoconf-2.68, automake-1.11.1.

<font color='#006600'>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
</font><font color='#997700'>@@ -0,0 +1,100 @@
</font><font color='#000088'>+#
+#  $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
+@2010-04-08    Joel Sherrill <joel.sherrill@@oarcorp.com>
+
+       * README: Add task suspend and resume.
+@
+text
+@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
+@2010-04-08    Joel Sherrill <joel.sherrill@@oarcorp.com>
+
+       * README: Added task_mode command.
+@
+text
+@d2 1
+a2 1
+#  $Id$
+d17 1
+d24 2
+a26 1
+task_delete [name|id]
+@
+
+
+1.4
+log
+@2010-04-08    Joel Sherrill <joel.sherrill@@oarcorp.com>
+
+       * README: Add task set priority, task wake after, and clock tick.
+@
+text
+@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.
</font></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>