This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: net threads priority
Robin Farine wrote:
> On Tue, 2002-01-15 at 15:41, Jonathan Larmour wrote:
> > Robin Farine wrote:
> > >
> > > On Mon, 2002-01-14 at 16:57, Andrew Lunn wrote:
> > > >
> > > > By default, the schedular has 32 levels. I expect priority 99 is
> > > > causing it a problem. Do you asserts enabled? I guess not or you would
> > > > of seen this problem. I suggest you enable them. Look in the infra
> > > > package.
> > >
> > > IIRC, this won't help since the mlqueue implementation doesn't ensure
> > > that it gets a correct priority value.
> >
> >
> > mlqueue.cxx:215:
> > CYG_ASSERT((CYG_THREAD_MIN_PRIORITY >= pri)
> > && (CYG_THREAD_MAX_PRIORITY <= pri),
> > "Priority out of range!");
> >
>
> Ooops, I didn't recall correctly then :-/ ... a few months ago however,
> I experienced crashes due to an invalid priority, I was probably using
> the bitmap scheduler or the POSIX compat layer ... or I simply got an
> assertion failure after all ;-)
>
> > ?
> >
> > Jifl
>
> Robin
Now I have the following set up:
pcmcia interrupt priority: 3 (SA1110_CF_IRQ)
net thread priority: 7 (as default)
pcmcia handler: 5 ( see if_sc_lpe.c, sc_lpe_card_handler() )
application priority: 10
Is this correct?
Thank to all,
Andrea.
--
Ing. Andrea Acquaviva
D.E.I.S. - Universita' di Bologna
V.le Risorgimento, 2 40136 BOLOGNA (ITALY)
Tel: (+39) 051 20 93787 Fax: (+39) 051 2093786