context switching during delays

Hennenfent, Nick {AVL~Roswell} NICK.HENNENFENT at ROCHE.COM
Wed Jul 25 16:44:50 UTC 2001


After the hello world task starts I call rtems_task_wake_after(1000) so I
can debug it.
BTW, I use rtems_task_wake_after() in the bsp_post_driver stuff and it works

It gets to _Thread_Dispatch and then _Thread_Set_State and then when it
_Thread_Calculate_heir, that's when _Thread_Heir gets corrupted
Not sure yet if I am using the macros or the inline functions.

I suspect the problem is in _Priority_Get_highest but I am still tracing
through it.
It returns a value that is used as an array index so...


-----Original Message-----
From: Joel Sherrill [mailto:joel.sherrill at]
Sent: Tuesday, July 24, 2001 7:16 PM
To: Hennenfent, Nick {AVL~Roswell}
Cc: rtems-users at
Subject: Re: context switching during delays

Hello world does not configure a clock tick device driver
and thus has no way to measure the passage of time. 
Once you do the context switch, you will end up
in the idle task with no way to get out of it.

Joel Sherrill, Ph.D.             Director of Research & Development
joel at                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list