SMP related question

Joel Sherrill joel at rtems.org
Fri Aug 10 12:19:03 UTC 2018


On Fri, Aug 10, 2018, 7:11 AM Passas, Stavros <stavros.passas at intel.com>
wrote:

> Hi,
>
>
>
> In my local SMP enabled RTEMS, I notice core1 starting the Init() function
> of the user application.
>
I assume the boot processor is on core 0. How many cores?

> Is there a way to enforce RTEMS to run the Init() in the boot processor,
> when SMP is enabled?
>
Off the top of my head, all I can think of is using clustered scheduling
and have a scheduler instance just for core 0.

A potential alternative would be to have a way to set the affinity for the
Init thread via a configuration setting like you can do stack size now.

A work around would be to have the Init thread create another thread pinned
to core 0 to do the initialization but that seems like a hack.



>
> Best Regards,
>
>    Stavros
>
> --------------------------------------------------------------
> Intel Research and Development Ireland Limited
> Registered in Ireland
> Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
> Registered Number: 308263
>
> This e-mail and any attachments may contain confidential material for the
> sole use of the intended recipient(s). Any review or distribution by others
> is strictly prohibited. If you are not the intended recipient, please
> contact the sender and delete all copies.
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180810/383598da/attachment.html>


More information about the users mailing list