Exiting Init function: Difference between 4.6.0 and 4.6.5 ?
Alan Cudmore
Alan.P.Cudmore at nasa.gov
Mon Apr 24 14:09:14 UTC 2006
Thanks for the help. I'm going to change my Init function to call
rtems_task_delete(RTEMS_SELF).
Can anyone verify that something changed between 4.6.0 and 4.6.5 that
would make my code end up in _Internal_error_Occurred if I just let
the Init routine end?
( I'm going off to trace the code now.. )
Thanks,
Alan
On Apr 21, 2006, at 5:04 PM, Filipe Pedrosa wrote:
> Hi
>
> Try to invoke rtems_task_delete(RTEMS_SELF); this will delete the
> init task, and if there are no more task ready to execute, the idle
> task
> is dispatched.
>
> exit ends the RTEMS application
>
>
> On Friday 21 April 2006 21:44, Alan Cudmore wrote:
>> I have been using RTEMS 4.6.0 for a while, and I recently upgraded to
>> 4.6.5 and added the memory barrier patch.
>>
>> My Init routine creates a number of tasks and then just falls through
>> without calling 'exit'.
>>
>> When I upgraded to RTEMS 4.6.5, I noticed that I ended up in
>> _Internal_error_Occurred with "the_error" set to the THREAD_EXITTED
>> value ( 6 ).
>>
>> Is this an expected change going from 4.6.0 to 4.6.5?
>>
>> What is the proper way to exit the Init thread? Just call 'exit' ?
>>
>> Thanks,
>> Alan
>
More information about the users
mailing list