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: 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


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