NIOS2 ISR Handler with shadow registers

Kirspel, Kevin kevin.kirspel at optimedical.com
Tue Dec 3 13:54:09 UTC 2013


Adding the initialize_shadow_register_stacks() to the bsp_predriver_hook() did the trick. Thanks for the info.



> Hello Kevin,



> we may integrate the BSP next year.  Attached is our bspstart.c file.



> On 2013-12-02 23:28, Kirspel, Kevin wrote:

> > I added the global definition for

> > _Nios2_ISR_Status_interrupts_disabled (except I used

> > NIOS2_ISR_STATUS_BITS_EIC_IL instead of INTERRUPT_DISABLE_IL_BITS ? I

> > assume it?s the highest interrupt level in your BSP).  It successfully

> > compiles but will crash on startup while spitting out the RTEMS shell

> > hello message.  So it processes some ISRs successfully but then dies.

> > I?m not sure if there is more I need to do in my BSP.  I have it working with the below > ISR handler but it doesn?t do everything that yours did.



> There are some initialization steps necessary for shadow registers.  You should run the test sptests/spcontext01.



> --

> Sebastian Huber, embedded brains GmbH



> Address : Dornierstr. 4, D-82178 Puchheim, Germany

> Phone   : +49 89 189 47 41-16

> Fax     : +49 89 189 47 41-09

> E-Mail  : sebastian.huber at embedded-brains.de<mailto:sebastian.huber at embedded-brains.de>

> PGP     : Public key available on request.



> Diese Nachricht ist keine gesch?ftliche Mitteilung im Sinne des EHUG.

Kevin Kirspel
Senior Research Engineer
Opti Medical
235 Hembree Park Drive
Roswell GA 30076
Tel: (770)-510-4444 ext. 81642
Direct: (770)-688-1642
Fax: (770)-510-4445

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20131203/6e5438f1/attachment-0001.html>


More information about the users mailing list