summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/efi68k/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-09-15 13:26:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-09-15 13:26:11 +0000
commit1c490ab036ab2ff87ec5443bac9ee4cc78fbc545 (patch)
treeb2243dbaf600e5c8a063a356b6ad13416739de09 /c/src/lib/libbsp/m68k/efi68k/startup
parent2003-09-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-1c490ab036ab2ff87ec5443bac9ee4cc78fbc545.tar.bz2
2003-09-15 Joel Sherrill <joel@OARcorp.com>
PR 483/bsps * start/start.c, startup/bspstart.c: Spurious interrupt handlers cannot be installed until RTEMS has initialized the vector table.
Diffstat (limited to 'c/src/lib/libbsp/m68k/efi68k/startup')
-rw-r--r--c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c12
1 files changed, 12 insertions, 0 deletions
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
@@ -46,6 +46,17 @@ 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
*
* This routine does the bulk of the system initialization.
@@ -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 );