Changeset ed07762 in rtems


Ignore:
Timestamp:
Nov 8, 2001, 1:42:46 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0aa09608
Parents:
5354ab0
Message:

2001-11-08 Jiri Gaisler <jiri@…>

This fix is response to test results reported by Jerry Needell
<jerry.needell@…> for the SPARC/ERC32 and tracked as PR80.

  • tm27/task1.c: Account for overhead in starting and stopping the timer.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/tmtests/ChangeLog

    r5354ab0 red07762  
     12001-11-08      Jiri Gaisler <jiri@gaisler.com>
     2
     3        This fix is response to test results reported by Jerry Needell
     4        <jerry.needell@unh.edu> for the SPARC/ERC32 and tracked as PR80.
     5        * tm27/task1.c: Account for overhead in starting and stopping
     6        the timer.
     7
    182001-10-11      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • c/src/tests/tmtests/tm27/task1.c

    r5354ab0 red07762  
    3535volatile rtems_unsigned32 Interrupt_return_time, Interrupt_return_nested_time;
    3636rtems_unsigned32 Interrupt_nest;
     37rtems_unsigned32 timer_overhead;
    3738
    3839rtems_isr Isr_handler(
     
    7677  directive_failed( status, "rtems_task_start of Task_2" );
    7778
     79  Timer_initialize();
     80  Read_timer();
     81  Timer_initialize();
     82  timer_overhead = Read_timer();
     83
    7884  status = rtems_task_delete( RTEMS_SELF );
    7985  directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
     
    95101
    96102  Interrupt_occurred = 0;
    97   Timer_initialize();
    98     Cause_tm27_intr();
     103
     104  Timer_initialize();
     105  Cause_tm27_intr();
    99106  /* goes to Isr_handler */
    100107
     
    109116    1,
    110117    0,
    111     0
     118    timer_overhead
    112119  );
    113120
     
    117124    1,
    118125    0,
    119     0
     126    timer_overhead
    120127  );
    121128
     
    130137  Interrupt_occurred = 0;
    131138  Timer_initialize();
    132     Cause_tm27_intr();
     139  Cause_tm27_intr();
    133140  /* goes to Isr_handler */
    134141
     
    166173  Interrupt_occurred = 0;
    167174  Timer_initialize();
    168     Cause_tm27_intr();
     175  Cause_tm27_intr();
    169176
    170177  /*
     
    198205    1,
    199206    0,
    200     0
     207    timer_overhead
    201208  );
    202209
     
    257264      Lower_tm27_intr();
    258265      Timer_initialize();
    259         Cause_tm27_intr();
     266      Cause_tm27_intr();
    260267      /* goes to a nested copy of Isr_handler */
    261268#if (MUST_WAIT_FOR_INTERRUPT == 1)
  • testsuites/tmtests/ChangeLog

    r5354ab0 red07762  
     12001-11-08      Jiri Gaisler <jiri@gaisler.com>
     2
     3        This fix is response to test results reported by Jerry Needell
     4        <jerry.needell@unh.edu> for the SPARC/ERC32 and tracked as PR80.
     5        * tm27/task1.c: Account for overhead in starting and stopping
     6        the timer.
     7
    182001-10-11      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • testsuites/tmtests/tm27/task1.c

    r5354ab0 red07762  
    3535volatile rtems_unsigned32 Interrupt_return_time, Interrupt_return_nested_time;
    3636rtems_unsigned32 Interrupt_nest;
     37rtems_unsigned32 timer_overhead;
    3738
    3839rtems_isr Isr_handler(
     
    7677  directive_failed( status, "rtems_task_start of Task_2" );
    7778
     79  Timer_initialize();
     80  Read_timer();
     81  Timer_initialize();
     82  timer_overhead = Read_timer();
     83
    7884  status = rtems_task_delete( RTEMS_SELF );
    7985  directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
     
    95101
    96102  Interrupt_occurred = 0;
    97   Timer_initialize();
    98     Cause_tm27_intr();
     103
     104  Timer_initialize();
     105  Cause_tm27_intr();
    99106  /* goes to Isr_handler */
    100107
     
    109116    1,
    110117    0,
    111     0
     118    timer_overhead
    112119  );
    113120
     
    117124    1,
    118125    0,
    119     0
     126    timer_overhead
    120127  );
    121128
     
    130137  Interrupt_occurred = 0;
    131138  Timer_initialize();
    132     Cause_tm27_intr();
     139  Cause_tm27_intr();
    133140  /* goes to Isr_handler */
    134141
     
    166173  Interrupt_occurred = 0;
    167174  Timer_initialize();
    168     Cause_tm27_intr();
     175  Cause_tm27_intr();
    169176
    170177  /*
     
    198205    1,
    199206    0,
    200     0
     207    timer_overhead
    201208  );
    202209
     
    257264      Lower_tm27_intr();
    258265      Timer_initialize();
    259         Cause_tm27_intr();
     266      Cause_tm27_intr();
    260267      /* goes to a nested copy of Isr_handler */
    261268#if (MUST_WAIT_FOR_INTERRUPT == 1)
Note: See TracChangeset for help on using the changeset viewer.