Ignore:
Timestamp:
May 30, 1998, 11:46:21 AM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b317117a
Parents:
a38b9f8
Message:

Updated to current source and removed warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c

    ra38b9f8 rdc104a4  
    4747Chain_Control     ISR_Array  [NUM_LIRQ];
    4848
     49/*PAGE
     50 *
     51 * external_exception_ISR
     52 *
     53 * This interrupt service routine is called for an External Exception.
     54 *
     55 *  Input parameters:
     56 *    vector - vector number representing the external exception vector.
     57 *
     58 *  Output parameters:  NONE
     59 *
     60 *  Return values:
     61 */
    4962
    50 /*  PAGE
     63rtems_isr external_exception_ISR (
     64  rtems_vector_number   vector             /* IN  */
     65)
     66{
     67 rtems_unsigned16    index;
     68 Chain_Node          *node;
     69 EE_ISR_Type         *ee_isr;
     70 
     71 /*
     72  * Read vector.
     73  */
     74 index = 0;
     75
     76 node = ISR_Array[ index ].first;
     77 while ( !_Chain_Is_tail( &ISR_Array[ index ], node ) ) {
     78   ee_isr = (EE_ISR_Type *) node;
     79   (*ee_isr->handler)( ee_isr->vector );
     80   node = node->next;
     81 }
     82
     83 /*
     84  * Clear the interrupt.
     85  */
     86}
     87
     88
     89/*PAGE
    5190 *
    5291 *  initialize_external_exception_vector
     
    81120}
    82121
    83 /*  PAGE
     122/*PAGE
    84123 *
    85124 *  set_EE_vector
     
    96135 *  Return values:
    97136 */
     137
    98138rtems_isr_entry  set_EE_vector(
    99139  rtems_isr_entry     handler,      /* isr routine        */
     
    146186}
    147187
    148 /*  PAGE
    149  *
    150  * external_exception_ISR
    151  *
    152  * This interrupt service routine is called for an External Exception.
    153  *
    154  *  Input parameters:
    155  *    vector - vector number representing the external exception vector.
    156  *
    157  *  Output parameters:  NONE
    158  *
    159  *  Return values:
    160  */
    161 
    162 rtems_isr external_exception_ISR (
    163   rtems_vector_number   vector             /* IN  */
    164 )
    165 {
    166  rtems_unsigned16    index;
    167  EE_ISR_Type         *node;
    168  
    169  /*
    170   * Read vector.
    171   */
    172  index = 0;
    173 
    174  node = ISR_Array[ index ].first;
    175  while ( !_Chain_Is_tail( &ISR_Array[ index ], node ) ) {
    176    (*node->handler)( node->vector );
    177    node = node->Node.next;
    178  }
    179 
    180  /*
    181   * Clear the interrupt.
    182   */
    183 }
    184 
Note: See TracChangeset for help on using the changeset viewer.