[PATCH 13/18] config: Add _Thread_Idle_body

Chris Johns chrisj at rtems.org
Sun Feb 16 21:57:41 UTC 2020


On 16/2/20 6:12 pm, Sebastian Huber wrote:
> On 16/02/2020 00:36, Chris Johns wrote:
> 
>> On 2020-02-15 03:02, Sebastian Huber wrote:
>>> Move the idle thread body configuration constant out of the
>>> configuration table.
>>>
>>> Provide a default definition of the idle thread body constant.
>>
>> May be I am missing something simple here. How would I provide an custom IDLE
>> task? Is it by providing something like ...
>>
>> #include <rtems/score/threadidledata.h>
>>
>> const Thread_Idle_body _Thread_Idle_body = My_Idle_body; 
> 
> No, definitely not. An application designer should use the documented API:
> 
> https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#configure-idle-task-body
> 
> The goal of this and follow up change sets is to split this 3k LOC file
> (confdefs.h) in easier to review pieces.
> 
> The file contains also comments which should be in the Classic API Guide, e.g.
> how to configure the filesystems:
> 
> https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#file-system-configuration-parameters
> 
> This is just an enumeration of the options. The user has no idea how things are
> related after reading this section.
> 

Thank you for the explanation. I was reviewing the patch and not the patch and
the results of it being applied.

Chris


More information about the devel mailing list