Changeset 8baeb42 in rtems


Ignore:
Timestamp:
Sep 30, 2008, 4:23:34 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
7f4545de
Parents:
641982a
Message:

2008-09-30 Joel Sherrill <joel.sherrill@…>

  • cpu.c: Fine tune conditional so _CPU_ISR_install_vector is in CPU Kit now.
Location:
cpukit/score/cpu/sh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/sh/ChangeLog

    r641982a r8baeb42  
     12008-09-30      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * cpu.c: Fine tune conditional so _CPU_ISR_install_vector is in CPU Kit
     4        now.
     5
    162008-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/score/cpu/sh/cpu.c

    r641982a r8baeb42  
    154154 */
    155155
    156 #if defined(__sh1__) || defined(__sh2__)
    157156void _CPU_ISR_install_vector(
    158157  uint32_t    vector,
     
    162161{
    163162   proc_ptr ignored ;
    164 #if 0
    165    if(( vector <= 113) && ( vector >= 11))
    166      {
    167 #endif
    168        *old_handler = _ISR_Vector_table[ vector ];
    169 
    170        /*
    171         *  If the interrupt vector table is a table of pointer to isr entry
    172         *  points, then we need to install the appropriate RTEMS interrupt
    173         *  handler for this vector number.
    174         */
    175        _CPU_ISR_install_raw_handler(vector,
    176                                     _Hardware_isr_Table[vector],
    177                                     &ignored );
    178 
    179        /*
    180         *  We put the actual user ISR address in '_ISR_Vector_table'. 
    181         *  This will be used by __ISR_Handler so the user gets control.
    182         */
    183 
    184        _ISR_Vector_table[ vector ] = new_handler;
    185 #if 0
    186      }
    187 #endif
    188 }
    189 #endif /* _CPU_ISR_install_vector */
     163   *old_handler = _ISR_Vector_table[ vector ];
     164
     165 /*
     166  *  If the interrupt vector table is a table of pointer to isr entry
     167  *  points, then we need to install the appropriate RTEMS interrupt
     168  *  handler for this vector number.
     169  */
     170#if defined(__sh1__) || defined(__sh2__)
     171  _CPU_ISR_install_raw_handler(vector, _Hardware_isr_Table[vector], &ignored );
     172#endif
     173
     174 /*
     175  *  We put the actual user ISR address in '_ISR_Vector_table'. 
     176  *  This will be used by __ISR_Handler so the user gets control.
     177  */
     178
     179 _ISR_Vector_table[ vector ] = new_handler;
     180}
    190181
    191182/*PAGE
Note: See TracChangeset for help on using the changeset viewer.