This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Replace eCos idle thread
On Fri, Sep 12, 2003 at 09:02:46AM +0200, Daniel Lidsten wrote:
> Hi,
>
> I would like to provide my own idle thread in the system. Is there any
> way to make ecos startup an application specific function as the idle
> thread? Since i dont have any timeslicing in the system, i put one
> thread on each priority which means that i don't want to put my idle
> thread on priority 30 so that i have two idle threads.
>
> Regards, Daniel Lidsten
the one way is to check for hal_idle_thread_action (or similar?) in
your HAL package, and change it. I do not know, is this functions exists
in all HALs, but I saw it yesterday in i386 package -- it contains
simple "hlt" asm instruction (for uniprocessor system), so it shouldn't
be hard to provide own replacement.
--
Piotr Trojanek
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss