<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 10, 2018, 7:11 AM Passas, Stavros <<a href="mailto:stavros.passas@intel.com">stavros.passas@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-5334421110862713139WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In my local SMP enabled RTEMS, I notice core1 starting the Init() function of the user application.</p></div></div></blockquote></div></div><div dir="auto">I assume the boot processor is on core 0. How many cores?</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-5334421110862713139WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal">Is there a way to enforce RTEMS to run the Init() in the boot processor, when SMP is enabled?</p></div></div></blockquote></div></div><div dir="auto">Off the top of my head, all I can think of is using clustered scheduling and have a scheduler instance just for core 0.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-5334421110862713139WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Best Regards,<u></u><u></u></p>
<p class="MsoNormal">   Stavros <u></u><u></u></p>
</div>
<p>--------------------------------------------------------------<br>
Intel Research and Development Ireland Limited<br>
Registered in Ireland<br>
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare<br>
Registered Number: 308263</p>


<p>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.</p>

<p></p>
</div>

_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div></div>