Critical Interrupt Input
Is there any reason that a Critical Input Interrupt will not work reliably on a 44x powerpc?
I am using an AMCC now Applied Micro AMCC460EX
and changed
CRITICAL_EXCEPTION(0x0100, CriticalInput, unknown_exception) toCRITICAL_EXCEPTION(0x0100, CriticalInput, do_MyCritIntr)
The code for the handler is trivial
ie.
int crintrcount;
void do_MyCritIntr(void)
{
crintrcount++;
}
The code runs for a while but eventually I get panic messages and the system hangs. Is there something I must alter in the kernel to do this reliably?
Outbound scan for Spam or Virus by Barracuda at Delta Tau
Quoted 2 lines · Henry Bausley
=20
Is there any reason that a Critical Input Interrupt will not work =
reliably on a 44x powerpc?
Quoted 11 lines
=20
I am using an AMCC now Applied Micro AMCC460EX=20 =20
and changed
=20CRITICAL_EXCEPTION(0x0100, CriticalInput, unknown_exception)toCRITICAL_EXCEPTION(0x0100, CriticalInput, do_MyCritIntr)=20
The code for the handler is trivial
ie.
Quoted 8 lines
int crintrcount;
=20
voiddo_MyCritIntr(void)
{
crintrcount++;
}
=20
The code runs for a while but eventually I get panic messages and the =
system hangs. Is there something I must alter in the kernel to do this = reliably?
The 44x low level code needs to handle exception stacks properly for = this to work. Since its possible to have a critical exception occur = while in a normal exception level, you have to have proper saving of = additional register state and a stack frame for the critical exception, = etc. I'm not sure if that was ever done for 44x.
- k
Quoted 5 lines · Kumar Gala
The 44x low level code needs to handle exception stacks properly for this to work. Since its possible to have a critical exception occur while in a normal exception level, you have to have proper saving of additional register state and a stack frame for the critical exception, etc. I'm not sure if that was ever done for 44x.
Don't 44x and FSL BookE share the same macros ? I would think 44x does indeed implement the same crit support as e500...
What does the crash look like ?
Ben.