Changeset 9700578 in rtems for testsuites/tmtests


Ignore:
Timestamp:
Oct 30, 1995, 9:54:45 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c4808ca
Parents:
ea74482
Message:

SPARC port passes all tests

Location:
testsuites/tmtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/tmtests/tm08/task1.c

    rea74482 r9700578  
    199199
    200200  put_time(
    201     "rtems_task_set_note",
     201    "rtems_task_get_note",
    202202    end_time,
    203203    OPERATION_COUNT,
  • testsuites/tmtests/tm27/task1.c

    rea74482 r9700578  
    1010 *
    1111 *  $Id$
     12 */
     13
     14/*
     15 *  WARNING!!!!!!!!!   
     16 *
     17 *  THIS TEST USES INTERNAL RTEMS VARIABLES!!!
    1218 */
    1319
     
    3339  rtems_vector_number vector
    3440);
    35 
    36 /*
    37  *  INTERNAL RTEMS VARIABLES!!!
    38  */
    39 
    40 extern rtems_unsigned32 _Thread_Dispatch_disable_level;
    41 extern rtems_unsigned32 _Context_Switch_necessary;
    42 extern Chain_Control *_Thread_Ready_chain;
    43 extern rtems_tcb     *_Thread_Heir;
    4441
    4542rtems_task Init(
     
    170167  Timer_initialize();
    171168    Cause_tm27_intr();
    172   /* goes to Isr_handler */
    173 }
     169
     170  /*
     171   *  goes to Isr_handler and then returns
     172   */
     173
     174  puts( "*** END OF TEST 27 ***" );
     175  exit( 0 );
     176}
     177
     178/*
     179 *  NOTE:  When this task is executing, some of the assumptions made
     180 *         regarding the placement of the currently executing task's TCB
     181 *         on the ready chains have been violated.  At least the assumption
     182 *         that this task is at the head of the chain for its priority
     183 *         has been violated.
     184 */
    174185
    175186rtems_task Task_2(
     
    198209  );
    199210
    200   puts( "*** END OF TEST 27 ***" );
    201   exit( 0 );
     211  fflush( stdout );
     212
     213  /*
     214   *  Switch back to the other task to exit the test.
     215   */
     216
     217  _Thread_Dispatch_disable_level = 0;
     218 
     219  _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[254].first;
     220 
     221  _Context_Switch_necessary = 1;
     222
     223  _Thread_Dispatch();
     224
    202225}
    203226
Note: See TracChangeset for help on using the changeset viewer.