[PATCH] score: Add _CPU_Use_thread_local_storage()

Chris Johns chrisj at rtems.org
Mon Jul 4 22:33:34 UTC 2022


On 4/7/2022 4:08 pm, Sebastian Huber wrote:
> On 29/06/2022 15:07, Sebastian Huber wrote:
>> At some point during system initialization, the idle threads are created.
>> Afterwards, the boot processor basically executes within the context of an idle
>> thread with thread dispatching disabled.  On some architectures, the
>> thread-local storage area of the associated thread must be set in dedicated
>> processor registers.  Add the new CPU port function to do this:
>>
>> void _CPU_Use_thread_local_storage( const Context_Control *context )
>>
>> Close #4672.
> 
> Any comments to this patch?

I did wonder about the boot processor executing within the idle thread's context
comment.

What code is the boot processor executing in the context of the idle thread?

How does that execution effect the stack allocated to the idle thread?

I have always considered the idle thread's stack as small because it does nothing.

Chris


More information about the devel mailing list