forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user