[ECOS] ecos idle function
Mon Jan 20 18:51:00 GMT 2003
I can break the problem into the following point.
If I start the create idle_thread_main() with a
priority 1, and then run through the code using the
debugger, the code dosent start the new thread. I am
using your code. creating the thread, resuming it
etc. The current thread has priority 31 and hence
shouldn't interfere with the starting of this new
thread. I even tried suspending the current thread,
hoping that atleast now it will jump to the
idle_thread_main() function. But it dosen't. Here's a
brief part of the code.
"Calibration idle thread",
idle_loops_start = idle_thread_loops;
/* Dont be decieved, remember this is a
multithreaded system ! */
*calibration = idle_thread_loops - idle_loops_start;
The code simply jumps from cyg_thread_resume to the
next line, without jumping into idle_thread_main. I
know this also because I had set break points in
Would really appericiate your feedback.
--- Andrew Lunn <email@example.com> wrote:
> On Thu, Jan 16, 2003 at 12:14:40PM -0800, Milind
> Kopikare wrote:
> > Hi,
> > this question has been posted before but I
> > quite get the answer.
> > In eCos, Andrew Lunn's code should work if in
> > time we shift to the idle_thread_main function in
> > thread.cxx. But, whenever the processor is idling,
> > code dosent jump there. For want of other tasks to
> > the processor hangs.
> Could you explain this is more detail please.
> Something sounds very
> wrong here.
> Before posting, please read the FAQ:
> and search the list archive:
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss