[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Potential Fatal Error in BSP efi68k efi332 mrm332 in 4.6.0-pre4
- Date: Mon, 1 Sep 2003 00:42:32 -0700 (PDT)
- From: cedric_aubert at yahoo.fr (Cedric Aubert)
- Subject: Potential Fatal Error in BSP efi68k efi332 mrm332 in 4.6.0-pre4
Hi,
In all this BSP (68k) we use a function called
Spurious_Initialize to init the exception vector to
a spurious it handler. To do this we use
set_vector(...,..., 1), this use a generic RTMES
handler.
And set_vector(...,..., 1) use the _ISR_Vector_Table.
But in those BSP, Spurious_Initialize is call in the
first start fucntion (start.c or .S) before the call
of
boot_card fucntion. But boot_card call
rtems_initialize_executive_early that's call
_ISR_Handler_Initialization witch allocate the
_ISR_Vector_table in the Workspace. So the function
Spurious_Initialize was call and modified the
_ISR_Vector_table before the _ISR_Vector_Table
initialization. The correct thing to do is to
call Spurious_initialize fucntion in the
predriver_hook like in the sim68000 BSP.
I have seen this problem during porting my
custom 68k board, and test it that's correctly work.
Hope that help.
Cedric
=====
AUBERT Cedric
SDEL Controle Commande
rue Nungesser & Coli
44860 St Aignan de Grand Lieu
E-mail : cedric_aubert at yahoo.fr
Http : http://www.controle-commande.sdel.fr/
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com