NIOS2 ISR Handler with shadow registers

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Dec 3 07:43:52 UTC 2013


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
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bspstart.c
Type: text/x-csrc
Size: 6158 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20131203/48ac93f2/attachment-0001.bin>


More information about the users mailing list