Allowed system calls in ISRs

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Tue May 31 13:23:10 UTC 2005


Ingolf Steinbach wrote:
> On Friday 27 May 2005 15:23, Joel Sherrill <joel at OARcorp.com> wrote:
> 
>>That should be OK.  It doesn't allocate memory or block.  Those
>>are the two biggest factors.
> 
> 
> So, the write operation for the setting of the new vector is
> atomic or protected against parallel access? Is an ISR allowed
> to change the vector for "its own" interrupt?

Although the API is consistent, the actual routine which
installs the ISR and returns the old one is CPU dependent.
The entire critical section you are referring to is
thus CPU dependent so you would have to check the port.

If it isn't, it would be easy to fix.


> Kind regards
>     Ingolf


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list