2000-12-13 Joel Sherrill <joel@OARcorp.com>

* include/rtems/score/isr.h, src/isr.c: Allocate it from the
	workspace rather than explicitly declaring it.  This allows
	the size to be a non-constant from the perspective of score/cpu.
This commit is contained in:
Joel Sherrill
2000-12-13 22:13:32 +00:00
parent 797d88ba31
commit 9928d0887d
6 changed files with 22 additions and 2 deletions

View File

@@ -1,4 +1,10 @@
2000-12-13 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/isr.h, src/isr.c: Allocate it from the
workspace rather than explicitly declaring it. This allows
the size to be a non-constant from the perspective of score/cpu.
2000-12-01 Joel Sherrill <joel@OARcorp.com> 2000-12-01 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/score/coresem.inl: Removed comments since convention * macros/rtems/score/coresem.inl: Removed comments since convention

View File

@@ -88,7 +88,7 @@ SCORE_EXTERN volatile unsigned32 _ISR_Nest_level;
* interrupt service routines are vectored by the ISR Handler via this table. * interrupt service routines are vectored by the ISR Handler via this table.
*/ */
SCORE_EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ]; SCORE_EXTERN ISR_Handler_entry *_ISR_Vector_table;
/* /*
* _ISR_Handler_initialization * _ISR_Handler_initialization

View File

@@ -42,6 +42,10 @@ void _ISR_Handler_initialization( void )
INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL
); );
_ISR_Vector_table = _Workspace_Allocate_or_fatal_error(
sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS
);
_CPU_Interrupt_stack_low = _CPU_Interrupt_stack_low =
_Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size ); _Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size );

View File

@@ -1,4 +1,10 @@
2000-12-13 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/isr.h, src/isr.c: Allocate it from the
workspace rather than explicitly declaring it. This allows
the size to be a non-constant from the perspective of score/cpu.
2000-12-01 Joel Sherrill <joel@OARcorp.com> 2000-12-01 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/score/coresem.inl: Removed comments since convention * macros/rtems/score/coresem.inl: Removed comments since convention

View File

@@ -88,7 +88,7 @@ SCORE_EXTERN volatile unsigned32 _ISR_Nest_level;
* interrupt service routines are vectored by the ISR Handler via this table. * interrupt service routines are vectored by the ISR Handler via this table.
*/ */
SCORE_EXTERN ISR_Handler_entry _ISR_Vector_table[ ISR_NUMBER_OF_VECTORS ]; SCORE_EXTERN ISR_Handler_entry *_ISR_Vector_table;
/* /*
* _ISR_Handler_initialization * _ISR_Handler_initialization

View File

@@ -42,6 +42,10 @@ void _ISR_Handler_initialization( void )
INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL
); );
_ISR_Vector_table = _Workspace_Allocate_or_fatal_error(
sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS
);
_CPU_Interrupt_stack_low = _CPU_Interrupt_stack_low =
_Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size ); _Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size );