RTEMS Traps and Interrupts

Manuel Coutinho manuel.coutinho at edisoft.pt
Wed Nov 11 11:13:05 UTC 2009


Yes. I think you are right. You can also use the
SPARC_SYNCHRONOUS_TRAP(trap) definition, to make the code more clear :).

Kind regards 
Manuel Coutinho

> -----Original Message-----
> From: rtems-users-bounces at rtems.org [mailto:rtems-users-bounces at rtems.org]
> On Behalf Of Gedare Bloom
> Sent: Wednesday, November 11, 2009 1:02 AM
> To: Jamie.Bowman at steepestascent.com; RTEMS
> Subject: Re: RTEMS Traps and Interrupts
> 
> On Tue, Nov 10, 2009 at 4:34 PM, Jamie Bowman
> <jamie.bowman at steepestascent.com> wrote:
> > All
> >
> >
> >
> > We have been developing a system based on the SPARC Leon 2 processor
> using
> > RTEMS 4.8. We have successfully used the RTEMS call
> rtems_interrupt_catch to
> > register interrupt handlers for a number of the 15 interrupt lines on
> the
> > SPARC Leon 2 processor. On the SPARC Leon2 processor, interrupts are
> > referred to as Asynchronous Traps with interrupts 1-15 being equivalent
> to
> > traps 0x11–0x1F.
> >
> >
> >
> > What we would like to do now is to catch a number of the lower level
> > processor Synchronous Traps, for example the trap associated with
> detecting
> > an uncorrectable EDAC error when reading Data from SDRAM.
> >
> >
> >
> > Is there support within RTEMS to register such a trap handler?
> >
> >
> I think it should work to install an interrupt handler as (trapnum +
> 256).  RTEMS will install the handler in such a way that the
> ISR_Handler routine will fudge the return program counter to act as a
> synchronous trap.
> 
> -Gedare
> 
> >
> >
> >
> > Thank you for in advance for your assistance.
> >
> >
> >
> >             Jamie
> >
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.org
> > http://www.rtems.org/mailman/listinfo/rtems-users
> >
> >
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users




More information about the users mailing list