Changeset 03b7789 in rtems for cpukit/score/src/isr.c


Ignore:
Timestamp:
Apr 26, 2014, 1:09:10 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0832ca7
Parents:
a16af0b3
git-author:
Sebastian Huber <sebastian.huber@…> (04/26/14 13:09:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/29/14 07:51:22)
Message:

score: Statically initialize _ISR_Vector_table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/isr.c

    ra16af0b3 r03b7789  
    2727#include <rtems/config.h>
    2828
     29#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
     30  ISR_Handler_entry _ISR_Vector_table[ CPU_INTERRUPT_NUMBER_OF_VECTORS ];
     31#elif defined(CPU_INTERRUPT_NUMBER_OF_VECTORS)
     32  #error "CPU_INTERRUPT_NUMBER_OF_VECTORS is defined for non-simple vectored interrupts"
     33#elif defined(CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER)
     34  #error "CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER is defined for non-simple vectored interrupts"
     35#endif
     36
    2937void _ISR_Handler_initialization( void )
    3038{
     
    3240
    3341#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    34   _ISR_Vector_table = _Workspace_Allocate_or_fatal_error(
    35      sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS
    36   );
    37 
    3842  _CPU_Initialize_vectors();
    3943#endif
Note: See TracChangeset for help on using the changeset viewer.