Changeset ea74482 in rtems for c/src/tests/tmtests


Ignore:
Timestamp:
Oct 11, 1995, 1:54:46 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9700578
Parents:
591d45e
Message:

reordered test cases from simple to complex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/tmtests/tm27/task1.c

    r591d45e rea74482  
    8787)
    8888{
    89   _Thread_Dispatch_disable_level = 1;
    90 
    91   Interrupt_nest = 1;
    92 
    9389  Install_tm27_vector( Isr_handler );
     90
     91  /*
     92   *  No preempt .. no nesting
     93   */
     94
     95  Interrupt_nest = 0;
     96
     97  _Thread_Dispatch_disable_level = 0;
    9498
    9599  Interrupt_occurred = 0;
     
    104108
    105109  put_time(
     110    "INTERRUPT_ENTER (no preempt)",
     111    Interrupt_enter_time,
     112    1,
     113    0,
     114    0
     115  );
     116
     117  put_time(
     118    "INTERRUPT_RETURN (no preempt)",
     119    Interrupt_return_time,
     120    1,
     121    0,
     122    0
     123  );
     124
     125  /*
     126   *  No preempt .. nested
     127   */
     128
     129  _Thread_Dispatch_disable_level = 1;
     130
     131  Interrupt_nest = 1;
     132
     133  Interrupt_occurred = 0;
     134  Timer_initialize();
     135    Cause_tm27_intr();
     136  /* goes to Isr_handler */
     137
     138#if (MUST_WAIT_FOR_INTERRUPT == 1)
     139  while ( Interrupt_occurred == 0 );
     140#endif
     141  Interrupt_return_time = Read_timer();
     142
     143  put_time(
    106144    "INTERRUPT_ENTER (nested interrupt)",
    107145    Interrupt_enter_nested_time,
     
    119157  );
    120158
    121   Interrupt_nest = 0;
    122 
    123   _Thread_Dispatch_disable_level = 0;
    124 
    125   Interrupt_occurred = 0;
    126   Timer_initialize();
    127     Cause_tm27_intr();
    128   /* goes to Isr_handler */
    129 
    130 #if (MUST_WAIT_FOR_INTERRUPT == 1)
    131   while ( Interrupt_occurred == 0 );
    132 #endif
    133   Interrupt_return_time = Read_timer();
    134 
    135   put_time(
    136     "INTERRUPT_ENTER (no preempt)",
    137     Interrupt_enter_time,
    138     1,
    139     0,
    140     0
    141   );
    142 
    143   put_time(
    144     "INTERRUPT_RETURN (no preempt)",
    145     Interrupt_return_time,
    146     1,
    147     0,
    148     0
    149   );
     159  /*
     160   *  Does a preempt .. not nested
     161   */
    150162
    151163  _Thread_Dispatch_disable_level = 0;
Note: See TracChangeset for help on using the changeset viewer.