diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-05 14:39:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-05 14:39:19 +0000 |
commit | 32caf25fbf6b65b61dded789a6198e0875f096e5 (patch) | |
tree | 552f8a75a0cb64e0b4ce59534fddc126dcc46cce /cpukit/score | |
parent | 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-32caf25fbf6b65b61dded789a6198e0875f096e5.tar.bz2 |
2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/isr.h, score/src/isr.c: Use
CPU_SIMPLE_VECTORED_INTERRUPTS porting parameter to avoid allocating
memory for vector table.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/include/rtems/score/isr.h | 2 | ||||
-rw-r--r-- | cpukit/score/src/isr.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/isr.h b/cpukit/score/include/rtems/score/isr.h index 362ef05489..7d8f12b223 100644 --- a/cpukit/score/include/rtems/score/isr.h +++ b/cpukit/score/include/rtems/score/isr.h @@ -87,11 +87,13 @@ SCORE_EXTERN boolean _ISR_Signals_to_thread_executing; */ SCORE_EXTERN volatile uint32_t _ISR_Nest_level; +#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) /** * The following declares the Vector Table. Application * interrupt service routines are vectored by the ISR Handler via this table. */ SCORE_EXTERN ISR_Handler_entry *_ISR_Vector_table; +#endif /** * This routine performs the initialization necessary for this handler. diff --git a/cpukit/score/src/isr.c b/cpukit/score/src/isr.c index 5c880df305..d282ebecd6 100644 --- a/cpukit/score/src/isr.c +++ b/cpukit/score/src/isr.c @@ -38,9 +38,11 @@ void _ISR_Handler_initialization( void ) _ISR_Nest_level = 0; +#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) _ISR_Vector_table = _Workspace_Allocate_or_fatal_error( sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS ); +#endif _CPU_Initialize_vectors(); |