[PATCH v2] rtems: Add rtems_task_create_from_config()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Sep 7 07:16:08 UTC 2020


Hello Joel,

On 04/09/2020 05:17, Chris Johns wrote:
> On 3/9/20 10:08 pm, Sebastian Huber wrote:
>> On 03/09/2020 04:08, Chris Johns wrote:
>>> On 3/9/20 2:09 am, Sebastian Huber wrote:
>>>> In contrast to rtems_task_create() this function creates a task with a
>>>> user-provided task storage area.  The new create function uses a
>>>> configuration structure instead of individual parameters.
>>>>
>>>> Add RTEMS_TASK_STORAGE_ALIGNMENT to define the recommended alignment of
>>>> a task storage area.
>>>>
>>>> Add RTEMS_TASK_STORAGE_SIZE() to calculate the recommended size of a
>>>> task storage area based on the task attributes and the size dedicated to
>>>> the task stack and thread-local storage.  This macro may allow future
>>>> extensions without breaking the API.
>>> Have all the issues in the other thread been resolved? It would be good to have
>>> Joel ack this patch before it is merged.
>> I tried to address the issues raised by Joel.
> He will need to answer.
>
sorry for being impatient, but I have a couple of patches which depend 
on the availability of the new task create function. What do you think 
about the directive name, the RTEMS_TASK_STORAGE_ALIGNMENT attribute, 
and the RTEMS_TASK_STORAGE_SIZE() macro?

The documentation of this new directive is incomplete. I would like to 
work first on the specification of the Classic API directives:

https://devel.rtems.org/ticket/3993

This involves a unification/consolidation of the Doxgyen and Sphinx 
documentation.

Afterwards I would like to concentrate more on higher level aspects 
which cover more than one directive. During this work I will revisit the 
documentation of rtems_task_create_from_config().




More information about the devel mailing list