public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: Interrupts and system calls ?
@ 2003-10-01 15:03 Savin Zlobec
  0 siblings, 0 replies; only message in thread
From: Savin Zlobec @ 2003-10-01 15:03 UTC (permalink / raw)
  To: Matthieu.GIRARDIN; +Cc: Eric.Doenges, ecos-discuss

Eric Doenges wrote:

> Matthieu.GIRARDIN@fr.thalesgroup.com wrote:
>
>     Hi everybody !
>
>Can someone describe me exactly what are the system calls allowed during (a
>ISR or) a DSR ?
>I know that I can only use the cpu registers during the ISR but what can I
>do in my DSRs ?
>    
>
>According to the documentation, you may not call any routine that could
>trigger the scheduler in an ISR. While not explicitly forbidden, I would
>also avoid calling any functions where it is not 100% clear if they are
>reentrant or not (i.e. things like malloc()). If you adhere to the eCos
>philosophy of doing all the actual work in the DSR, chances are you
>won't need to call any functions in the ISR.
>
>
>In a DSR, you may call any function except those that could block.
>I don't think there is a definitive list of what functions could block.
>Use some common sense - 
>
...

or look at the documentation - you have the 'Valid contexts' section for 
every
kernel API call. There is also a table for driver API calls -
http://sources.redhat.com/ecos/docs-2.0/ref/devapi-synchronization-levels.html

savin


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-01 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01 15:03 [ECOS] Re: Interrupts and system calls ? Savin Zlobec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).