On 5/7/2022 2:56 pm, Sebastian Huber wrote:
> On 05/07/2022 00:33, Chris Johns wrote:
>> 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?
> 
> The device driver initialization and creation of "/dev/console" is done in 
> this
> context for example.
> 
>>
>> How does that execution effect the stack allocated to the idle thread?
> 
> The idle stack is not used. The system initialization uses the interrupt 
> stacks.
> 

Thanks. I am fine with this.

Chris
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to