Ticket #145: sp04.diff

File sp04.diff, 1.4 KB (added by Chris Johns, on 12/03/06 at 13:31:12)

sp04.diff

Line 
1Index: task1.c
2===================================================================
3RCS file: /usr1/CVS/rtems/c/src/tests/sptests/sp04/task1.c,v
4retrieving revision 1.11
5diff -c -r1.11 task1.c
6*** task1.c     1999/11/17 17:51:32     1.11
7--- task1.c     2002/03/19 12:36:13
8***************
9*** 74,80 ****
10    directive_failed( status, "rtems_task_resume of TA3" );
11 
12    while ( FOREVER ) {
13!     if ( Run_count[ 1 ] == 3 ) {
14        puts( "TA1 - rtems_task_mode - change mode to NO RTEMS_PREEMPT" );
15 
16        status = rtems_task_mode(
17--- 74,80 ----
18    directive_failed( status, "rtems_task_resume of TA3" );
19 
20    while ( FOREVER ) {
21!     if ( Run_count[ 1 ] >= 3 ) {
22        puts( "TA1 - rtems_task_mode - change mode to NO RTEMS_PREEMPT" );
23 
24        status = rtems_task_mode(
25Index: tswitch.c
26===================================================================
27RCS file: /usr1/CVS/rtems/c/src/tests/sptests/sp04/tswitch.c,v
28retrieving revision 1.11
29diff -c -r1.11 tswitch.c
30*** tswitch.c   2000/06/12 15:00:12     1.11
31--- tswitch.c   2002/03/19 12:36:13
32***************
33*** 35,41 ****
34    rtems_time_of_day time;
35    rtems_status_code status;
36 
37!   index = task_number( heir->Object.id );
38 
39    switch( index ) {
40      case 1:
41--- 35,41 ----
42    rtems_time_of_day time;
43    rtems_status_code status;
44 
45!   index = task_number( heir->Object.id ) - task_number( Task_id[1] ) + 1;
46 
47    switch( index ) {
48      case 1: