This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: gets() and task scheduling stopped
- From: "Sam Sortais" <sams at myself dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sat, 12 Jan 2002 14:07:46 +0800
- Subject: Re: [ECOS] gets() and task scheduling stopped
> Gary Thomas wrote:
[snip]
> The call trace above implies this isn't the case (no mention of
> hal_if_diag_read_char), but of course this might be wrong. If it is wrong,
> that would indeed explain it.
yes HAL_DIAG_READ calls hal_if_diag_read_char, which then calls _ENTER_MONITOR() which disable interrupts and lock scheduler as you wrote.
> I know it's a bit late, but I wonder if we should have defined
> CYGACC_COMM_IF_GETC_NONBLOCK instead of CYGACC_COMM_IF_GETC so the looping
> is done outside of the ROM monitor. Maybe we should, and switch to that?
I misunderstood and replied too quickly when I wrote I will try
CYGACC_COMM_IF_GETC_NONBLOCK as I could not find it anywhere.
I did find a CYGACC_COMM_IF_GETC_TIMEOUT however, is that the one to use instead or is there another?
Sam.
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
1 cent a minute calls anywhere in the U.S.!
http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com