Changeset 23f5cdb5 in rtems


Ignore:
Timestamp:
Jun 13, 1998, 1:34:09 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0737710
Parents:
510524c6
Message:

Adding interrupt handling routine.

File:
1 edited

Legend:

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

    r510524c6 r23f5cdb5  
    6565)
    6666{
    67  rtems_unsigned16    index;
    68  Chain_Node          *node;
    69  EE_ISR_Type         *ee_isr;
     67 rtems_unsigned16      index;
     68 rtems_vector_number   chained_vector;
     69 Chain_Node           *node;
     70 EE_ISR_Type          *ee_isr;
    7071 
    7172 /*
    7273  * Read vector.
    7374  */
    74  index = 0;
    75 
     75 chained_vector = Get_interrupt();
     76 index = chained_vector - DMV170_IRQ_FIRST
    7677 node = ISR_Array[ index ].first;
    7778 while ( !_Chain_Is_tail( &ISR_Array[ index ], node ) ) {
     
    8485  * Clear the interrupt.
    8586  */
     87 Clear_interrupt( chained_vector );
     88
    8689}
    8790
     
    181184
    182185  /*
     186   * Enable the interrupt.
     187   */
     188   enable_card_interrupt( vector );
     189
     190  /*
    183191   * No interrupt service routine was removed so return 0
    184192   */
     
    186194}
    187195
     196
     197
Note: See TracChangeset for help on using the changeset viewer.