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]

Re: Synchronization problem in IP stack


Wade Jensen wrote:
> 
> 1.  I noticed that there are many places in the IP stack that use #ifdef __ECOS
> or #ifdef __ECOS__, but the __ECOS__ label was not defined in the compiler
> options.  Because of this, a call to sblock() was using the macro rather than
> the function call.

True. I think the better fix is to fix the places using __ECOS__ to use
__ECOS. I'll make it so.
 
> 2. The sblock() function was incorrectly assuming that sb_lock() unlocked the
> scheduler.
> 
> 3. There was an unnecessary assertion in cyg_tsleep().

While I'm tempted to agree with you and just apply these bits of the patch,
I'll have to defer to Hugo, who has studied this part of the stack far more
than I.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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