SMP support for Raspberry Pi 2
krohini1593 at gmail.com
Sat Jul 4 10:37:40 UTC 2015
On Fri, Jul 3, 2015 at 10:43 PM, Joel Sherrill <joel.sherrill at oarcorp.com>
> On July 3, 2015 11:53:07 AM CDT, Rohini Kulkarni <krohini1593 at gmail.com>
> >Any help that I can with this?
> >On 1 Jul 2015 16:59, "Rohini Kulkarni" <krohini1593 at gmail.com> wrote:
> >Hi all,
> >I wish to know where the maximum number of processors for a variant are
> >configured. I took a look at some configure scripts. I could see the
> >processor count defined for xilinx-zynq in its configuration file as
This looks to be BSP specific and could originate in configure.ac or a .h
I found this under ~/libbsp/arm/xilinx-zynq/configure
# Check whether --enable-smp was given.
if test "$rtems_cv_HAS_SMP" = "yes"; then :
> It is likely that each BSP has an underlying hardware limit.
> >rtems_configuration_get_maximum_processors() called in gets this
> >configured number. But I don't know from where.
> This is set initially based on the confdefs.h parameter
> CONFIGURE_SMP_MAXIMUM_PROCESSORS or something close to that (on phone).
Ya, I found this piece of code in confdefs.h
* If configured for SMP, then we need to know the maximum CPU cores.
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 1
#error "CONFIGURE_SMP_MAXIMUM_PROCESSORS not specified for SMP
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.
> Ultimately the maximum CPUs for an application is the lower of those
> available or RTEMS is configured for.
> >Also where is RTEMS_SMP defined for a bsp?
> A side-effect of building with --enable-smp.
> >Rohini Kulkarni
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel