2002-03-20 Chris Johns <ccj@acm.org>

* PR145.
	* sp04/task1.c, sp04/tswitch.c: Test fails if other tasks present
	in system (e.g. driver tasks).  Also exit on minimum number of
	switches not precise number.
This commit is contained in:
Joel Sherrill
2002-03-20 14:56:45 +00:00
parent ab09d08366
commit fabacfedb8
6 changed files with 18 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
2002-03-20 Chris Johns <ccj@acm.org>
* PR145.
* sp04/task1.c, sp04/tswitch.c: Test fails if other tasks present
in system (e.g. driver tasks). Also exit on minimum number of
switches not precise number.
2001-01-29 Joel Sherrill <joel@OARcorp.com>
* Fixed bug where resetting a timer that was not at the head

View File

@@ -74,7 +74,7 @@ rtems_task Task_1(
directive_failed( status, "rtems_task_resume of TA3" );
while ( FOREVER ) {
if ( Run_count[ 1 ] == 3 ) {
if ( Run_count[ 1 ] >= 3 ) {
puts( "TA1 - rtems_task_mode - change mode to NO RTEMS_PREEMPT" );
status = rtems_task_mode(

View File

@@ -35,7 +35,7 @@ rtems_extension Task_switch(
rtems_time_of_day time;
rtems_status_code status;
index = task_number( heir->Object.id );
index = task_number( heir->Object.id ) - task_number( Task_id[1] ) + 1;
switch( index ) {
case 1:

View File

@@ -1,3 +1,10 @@
2002-03-20 Chris Johns <ccj@acm.org>
* PR145.
* sp04/task1.c, sp04/tswitch.c: Test fails if other tasks present
in system (e.g. driver tasks). Also exit on minimum number of
switches not precise number.
2001-01-29 Joel Sherrill <joel@OARcorp.com>
* Fixed bug where resetting a timer that was not at the head

View File

@@ -74,7 +74,7 @@ rtems_task Task_1(
directive_failed( status, "rtems_task_resume of TA3" );
while ( FOREVER ) {
if ( Run_count[ 1 ] == 3 ) {
if ( Run_count[ 1 ] >= 3 ) {
puts( "TA1 - rtems_task_mode - change mode to NO RTEMS_PREEMPT" );
status = rtems_task_mode(

View File

@@ -35,7 +35,7 @@ rtems_extension Task_switch(
rtems_time_of_day time;
rtems_status_code status;
index = task_number( heir->Object.id );
index = task_number( heir->Object.id ) - task_number( Task_id[1] ) + 1;
switch( index ) {
case 1: