This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cyg_drv_cond_signal() problem


"Gary Chan" <gary.chan@email.com> writes:

> Hi,
> 
> Dose anyone know what happen if I have a call to cyg_drv_cond_signal in ISR?

Yes. You are likely to corrupt the scheduler.

> 
> My program call the serial callback function "data_rcv_done" in isr
> and I found that this funcion will call cyg_drv_cond_signal which is
> not allowed to call from ISR.
>

You should only call data_rcv_done() from the DSR. Look at any of the
existing serial device drivers for how this function is used.


-- 
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]