From 1c490ab036ab2ff87ec5443bac9ee4cc78fbc545 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 15 Sep 2003 13:26:11 +0000 Subject: 2003-09-15 Joel Sherrill PR 483/bsps * start/start.c, startup/bspstart.c: Spurious interrupt handlers cannot be installed until RTEMS has initialized the vector table. --- c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'c/src/lib/libbsp/m68k/efi68k/startup') diff --git a/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c b/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c index 74b787c693..0a9c115d2d 100644 --- a/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c @@ -45,6 +45,17 @@ void bsp_postdriver_hook(void); void bsp_libc_init( void *, unsigned32, int ); void bsp_pretasking_hook(void); /* m68k version */ +/* + * Call Spurious_Initialize in bsp_predriver_hook because + * bsp_predriver_hook is call after the _ISR_Vector_Table allocation + */ + +void bsp_predriver_hook(void) +{ + void Spurious_Initialize(); + Spurious_Initialize(); +} + /* * bsp_start * @@ -68,6 +79,7 @@ void bsp_start( void ) */ Cpu_table.pretasking_hook = bsp_pretasking_hook; + Cpu_table.predriver_hook = bsp_predriver_hook; Cpu_table.postdriver_hook = bsp_postdriver_hook; m68k_get_vbr( vbr ); -- cgit v1.2.3