From fe7acdcf8b56a38212a7212493b4e07a70914d0f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Jan 2001 16:36:23 +0000 Subject: 2001-01-03 Joel Sherrill * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). * cpu_asm.S: Modify to properly dereference _ISR_Vector_table now that it is dynamically allocated. --- c/src/exec/score/cpu/h8300/ChangeLog | 6 ++++++ c/src/exec/score/cpu/h8300/cpu_asm.S | 2 +- c/src/exec/score/cpu/h8300/rtems/score/cpu.h | 10 +++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) (limited to 'c/src/exec/score/cpu/h8300') diff --git a/c/src/exec/score/cpu/h8300/ChangeLog b/c/src/exec/score/cpu/h8300/ChangeLog index 15005bbf75..57e5358c57 100644 --- a/c/src/exec/score/cpu/h8300/ChangeLog +++ b/c/src/exec/score/cpu/h8300/ChangeLog @@ -1,3 +1,9 @@ +2001-01-03 Joel Sherrill + + * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). + * cpu_asm.S: Modify to properly dereference _ISR_Vector_table + now that it is dynamically allocated. + 2000-11-09 Ralf Corsepius * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/score/cpu/h8300/cpu_asm.S b/c/src/exec/score/cpu/h8300/cpu_asm.S index d9c22f588e..1cef5abf67 100644 --- a/c/src/exec/score/cpu/h8300/cpu_asm.S +++ b/c/src/exec/score/cpu/h8300/cpu_asm.S @@ -128,7 +128,7 @@ nested: /* Vector to ISR */ - mov.l #__ISR_Vector_table,er1 + mov.l @__ISR_Vector_table,er1 mov er0,er2 ; copy vector shll.l er2 shll.l er2 ; vector = vector * 4 (sizeof(int)) diff --git a/c/src/exec/score/cpu/h8300/rtems/score/cpu.h b/c/src/exec/score/cpu/h8300/rtems/score/cpu.h index 8e3f081d30..055a006aed 100644 --- a/c/src/exec/score/cpu/h8300/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/h8300/rtems/score/cpu.h @@ -601,7 +601,15 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); #define CPU_STACK_ALIGNMENT 2 -/* ISR handler macros */ +/* + * ISR handler macros + */ + +/* + * Support routine to initialize the RTEMS vector table after it is allocated. + */ + +#define _CPU_Initialize_vectors() /* COPE With Brain dead version of GCC distributed with Hitachi HIView Tools. Note requires ISR_Level be unsigned16 or assembler croaks. -- cgit v1.2.3