[ECOS] cyg_drv_cond_signal() problem
Nick Garnett
nickg@redhat.com
Thu Apr 4 01:57:00 GMT 2002
"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
More information about the Ecos-discuss
mailing list