From d6ea098b7712f5bf9a4f4c21291c95932bde6c0e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Jan 2001 16:37:08 +0000 Subject: 2001-01-03 Joel Sherrill * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). --- c/src/exec/score/ChangeLog | 5 +++++ c/src/exec/score/cpu/mips64orion/ChangeLog | 4 ++++ c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h | 10 +++++++++- c/src/exec/score/cpu/no_cpu/ChangeLog | 4 ++++ c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h | 14 +++++++++++++- c/src/exec/score/cpu/or16/ChangeLog | 4 ++++ c/src/exec/score/cpu/or16/rtems/score/cpu.h | 14 +++++++++++++- c/src/exec/score/cpu/or32/ChangeLog | 4 ++++ c/src/exec/score/cpu/or32/rtems/score/cpu.h | 14 +++++++++++++- c/src/exec/score/cpu/sh/ChangeLog | 4 ++++ c/src/exec/score/cpu/sh/rtems/score/cpu.h | 12 +++++++++++- c/src/exec/score/cpu/unix/ChangeLog | 4 ++++ c/src/exec/score/cpu/unix/rtems/score/cpu.h | 10 +++++++++- c/src/exec/score/src/isr.c | 2 ++ 14 files changed, 99 insertions(+), 6 deletions(-) (limited to 'c') diff --git a/c/src/exec/score/ChangeLog b/c/src/exec/score/ChangeLog index 70104b6a3c..58e1d976de 100644 --- a/c/src/exec/score/ChangeLog +++ b/c/src/exec/score/ChangeLog @@ -1,4 +1,9 @@ +2001-01-03 Joel Sherrill + + * src/isr.c: Modify to properly dereference _ISR_Vector_table + now that it is dynamically allocated. + 2000-12-19 Joel Sherrill * src/isr.c: Allocate the _ISR_Vector_table all the time not just when diff --git a/c/src/exec/score/cpu/mips64orion/ChangeLog b/c/src/exec/score/cpu/mips64orion/ChangeLog index d3ceec3c9f..2b5c3bfdca 100644 --- a/c/src/exec/score/cpu/mips64orion/ChangeLog +++ b/c/src/exec/score/cpu/mips64orion/ChangeLog @@ -1,3 +1,7 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h b/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h index 35d936ec7e..0ed3da7ed4 100644 --- a/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h @@ -571,7 +571,15 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); #define CPU_STACK_ALIGNMENT CPU_ALIGNMENT -/* ISR handler macros */ +/* + * ISR handler macros + */ + +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + */ + +#define _CPU_Initialize_vectors() /* * Disable all interrupts for an RTEMS critical section. The previous diff --git a/c/src/exec/score/cpu/no_cpu/ChangeLog b/c/src/exec/score/cpu/no_cpu/ChangeLog index c68a90e492..a4ea6a95e3 100644 --- a/c/src/exec/score/cpu/no_cpu/ChangeLog +++ b/c/src/exec/score/cpu/no_cpu/ChangeLog @@ -1,3 +1,7 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h b/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h index 4e05963e04..729fce9364 100644 --- a/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h @@ -636,7 +636,19 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); #define CPU_STACK_ALIGNMENT 0 -/* ISR handler macros */ +/* + * ISR handler macros + */ + +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + * + * NO_CPU Specific Information: + * + * XXX document implementation including references if appropriate + */ + +#define _CPU_Initialize_vectors() /* * Disable all interrupts for an RTEMS critical section. The previous diff --git a/c/src/exec/score/cpu/or16/ChangeLog b/c/src/exec/score/cpu/or16/ChangeLog index 7c855e7d5b..6d237e9c24 100644 --- a/c/src/exec/score/cpu/or16/ChangeLog +++ b/c/src/exec/score/cpu/or16/ChangeLog @@ -1,3 +1,7 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/or16/rtems/score/cpu.h b/c/src/exec/score/cpu/or16/rtems/score/cpu.h index a65754ec7c..8258281b19 100644 --- a/c/src/exec/score/cpu/or16/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/or16/rtems/score/cpu.h @@ -636,7 +636,19 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); #define CPU_STACK_ALIGNMENT 0 -/* ISR handler macros */ +/* + * ISR handler macros + */ + +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + * + * OR16 Specific Information: + * + * XXX document implementation including references if appropriate + */ + +#define _CPU_Initialize_vectors() /* * Disable all interrupts for an RTEMS critical section. The previous diff --git a/c/src/exec/score/cpu/or32/ChangeLog b/c/src/exec/score/cpu/or32/ChangeLog index 996964fb1c..0cc40b9933 100644 --- a/c/src/exec/score/cpu/or32/ChangeLog +++ b/c/src/exec/score/cpu/or32/ChangeLog @@ -1,3 +1,7 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/or32/rtems/score/cpu.h b/c/src/exec/score/cpu/or32/rtems/score/cpu.h index 04b81e3d04..f6929b7696 100644 --- a/c/src/exec/score/cpu/or32/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/or32/rtems/score/cpu.h @@ -636,7 +636,19 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); #define CPU_STACK_ALIGNMENT 0 -/* ISR handler macros */ +/* + * ISR handler macros + */ + +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + * + * OR32 Specific Information: + * + * XXX document implementation including references if appropriate + */ + +#define _CPU_Initialize_vectors() /* * Disable all interrupts for an RTEMS critical section. The previous diff --git a/c/src/exec/score/cpu/sh/ChangeLog b/c/src/exec/score/cpu/sh/ChangeLog index d3ceec3c9f..2b5c3bfdca 100644 --- a/c/src/exec/score/cpu/sh/ChangeLog +++ b/c/src/exec/score/cpu/sh/ChangeLog @@ -1,3 +1,7 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/sh/rtems/score/cpu.h b/c/src/exec/score/cpu/sh/rtems/score/cpu.h index f6c9252912..601276f45e 100644 --- a/c/src/exec/score/cpu/sh/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/sh/rtems/score/cpu.h @@ -520,8 +520,18 @@ SCORE_EXTERN void CPU_delay( unsigned32 microseconds ); #define CPU_STACK_ALIGNMENT CPU_ALIGNMENT -/* ISR handler macros */ +/* + * ISR handler macros + */ +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + * + * SH Specific Information: NONE + */ + +#define _CPU_Initialize_vectors() + /* * Disable all interrupts for an RTEMS critical section. The previous * level is returned in _level. diff --git a/c/src/exec/score/cpu/unix/ChangeLog b/c/src/exec/score/cpu/unix/ChangeLog index f70d73dbdc..b61fcfcb4e 100644 --- a/c/src/exec/score/cpu/unix/ChangeLog +++ b/c/src/exec/score/cpu/unix/ChangeLog @@ -1,3 +1,7 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/unix/rtems/score/cpu.h b/c/src/exec/score/cpu/unix/rtems/score/cpu.h index 7e0cbf7777..0ec126b404 100644 --- a/c/src/exec/score/cpu/unix/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/unix/rtems/score/cpu.h @@ -670,7 +670,15 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); #define CPU_STACK_ALIGNMENT 64 -/* ISR handler macros */ +/* + * ISR handler macros + */ + +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + */ + +#define _CPU_Initialize_vectors() /* * Disable all interrupts for an RTEMS critical section. The previous diff --git a/c/src/exec/score/src/isr.c b/c/src/exec/score/src/isr.c index 80c7785860..ac9be65e63 100644 --- a/c/src/exec/score/src/isr.c +++ b/c/src/exec/score/src/isr.c @@ -37,6 +37,8 @@ void _ISR_Handler_initialization( void ) sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS ); + _CPU_Initialize_vectors(); + #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( _CPU_Table.interrupt_stack_size < STACK_MINIMUM_SIZE ) -- cgit v1.2.3