<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 10:43 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><br>
<br>
On July 3, 2015 11:53:07 AM CDT, Rohini Kulkarni <<a href="mailto:krohini1593@gmail.com">krohini1593@gmail.com</a>> wrote:<br>
>Any help that I can with this?<br>
><br>
>On 1 Jul 2015 16:59, "Rohini Kulkarni" <<a href="mailto:krohini1593@gmail.com">krohini1593@gmail.com</a>> wrote:<br>
><br>
>Hi all,<br>
><br>
>I wish to know where the maximum number of processors for a variant are<br>
>configured. I took a look at some configure scripts. I could see the<br>
>processor count defined for xilinx-zynq in its configuration file as<br>
>ZYNQ_CPUS=2.<br></span></blockquote><div>
<span class=""></span>This looks to be BSP specific and could originate in <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> or a .h file.<br>I found this under
~/libbsp/arm/xilinx-zynq/configure <br># Check whether --enable-smp
was given.<br>if test "$rtems_cv_HAS_SMP" = "yes";
then :<br> ZYNQ_CPUS="2"<br>fi<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
It is likely that each BSP has an underlying hardware limit.<br></blockquote><div>Yes <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><br>
><br>
>rtems_configuration_get_maximum_processors() called in gets this<br>
>configured number. But I don't know from where.<br>
<br>
</span>This is set initially based on the confdefs.h parameter CONFIGURE_SMP_MAXIMUM_PROCESSORS or something close to that (on phone).<br></blockquote><div>
<p style="margin-bottom:0.2in">Ya, I found this piece of code in confdefs.h<br>#if
defined(RTEMS_SMP)<br> /*<br> * If configured
for SMP, then we need to know the maximum CPU cores.<br>
*/<br> #if !defined(CONFIGURE_SMP_APPLICATION)<br>
#if !defined(CONFIGURE_SMP_MAXIMUM_PROCESSORS)<br>
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 1<br>
#endif<br> #else<br> #if
!defined(CONFIGURE_SMP_MAXIMUM_PROCESSORS)<br>
#error "CONFIGURE_SMP_MAXIMUM_PROCESSORS not specified for SMP
Application"<br> #endif<br>
#endif<br>#endif</p><p style="margin-bottom:0.2in">This piece of code gets the
configured number of CPUs. I suppose this number is not specified and
will have to be specified by me somewhere in the configurations. But
I am unable to find out where.<br></p></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Ultimately the maximum CPUs for an application is the lower of those available or RTEMS is configured for.<br></blockquote><div>Yes. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><br>
>Also where is RTEMS_SMP defined for a bsp?<br>
<br>
</span>A side-effect of building with --enable-smp.<br></blockquote><div>Oh,alright. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
>Thanks.<br>
><br>
><br>
>--<br>
><br>
>Rohini Kulkarni<br>
<span class=""><font color="#888888"><br>
--joel<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Rohini Kulkarni</div></div>
</div></div>