Changeset 0dd1d44 in rtems for c/src/lib/libbsp/m68k/efi332


Ignore:
Timestamp:
Jan 11, 2000, 5:34:20 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
76c2b35
Parents:
bdb2899
Message:

Removed old hack of using Configuration Table entry ticks_per_timeslice
being set to 0 to indicate that there should be no Clock Tick. This
was used by the Timing Tests to avoid clock tick overhead perturbing
execution times. Now the Timing Tests simply leave the Clock Tick
Driver out of the Device Driver Table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/efi332/clock/ckinit.c

    rbdb2899 r0dd1d44  
    5858  Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
    5959
    60   if ( BSP_Configuration.ticks_per_timeslice ) {
    61     Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
     60  Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    6261
    63     /* enable 1mS interrupts */
    64     *PITR = (unsigned short int)( SAM(0x09,0,PITM) );/* load counter */
    65     *PICR = (unsigned short int)                     /* enable interrupt */
    66       ( SAM(ISRL_PIT,8,PIRQL) | SAM(CLOCK_VECTOR,0,PIV) );
    67    
    68     atexit( Clock_exit );
    69   }
     62  /* enable 1mS interrupts */
     63  *PITR = (unsigned short int)( SAM(0x09,0,PITM) );/* load counter */
     64  *PICR = (unsigned short int)                     /* enable interrupt */
     65    ( SAM(ISRL_PIT,8,PIRQL) | SAM(CLOCK_VECTOR,0,PIV) );
     66 
     67  atexit( Clock_exit );
    7068}
    7169
    7270void Clock_exit( void )
    7371{
     72  /* shutdown the periodic interrupt */
     73  *PICR = (unsigned short int)
     74    ( SAM(0,8,PIRQL) | SAM(CLOCK_VECTOR,0,PIV) );
     75  /*     ^^ zero disables interrupt */
    7476
    75   if ( BSP_Configuration.ticks_per_timeslice ) {
    76 
    77     /* shutdown the periodic interrupt */
    78     *PICR = (unsigned short int)
    79       ( SAM(0,8,PIRQL) | SAM(CLOCK_VECTOR,0,PIV) );
    80     /*     ^^ zero disables interrupt */
    81 
    82     /* do not restore old vector */
    83 
    84   }
     77  /* do not restore old vector */
    8578}
    8679
Note: See TracChangeset for help on using the changeset viewer.