This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_drv_cond_signal() problem
- From: Nick Garnett <nickg at redhat dot com>
- To: "Gary Chan" <gary dot chan at email dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 04 Apr 2002 10:57:40 +0100
- Subject: Re: [ECOS] cyg_drv_cond_signal() problem
- References: <20020404090013.3234.qmail@email.com>
"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