From b3a7216629914f7ff2c05bc233b6dc2100a265ec Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 16 Mar 2011 20:08:39 +0000 Subject: 2011-03-16 Jennifer Averett PR 1729/cpukit * spsize/size.c: Add next step in SMP support. This adds an allocated array of the Per_CPU structures to support multiple cpus vs a single instance of the structure which is still used if SMP support is disabled. Configuration support is also added to explicitly enable or disable SMP. But SMP can only be enabled for the CPUs which will support it initially -- SPARC and i386. With the stub BSP support, a BSP can be run as a single core SMP system from an RTEMS data structure standpoint. --- testsuites/sptests/ChangeLog | 12 ++++++++++++ testsuites/sptests/spsize/size.c | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 9eb51b2b27..14e6e5e367 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,15 @@ +2011-03-16 Jennifer Averett + + PR 1729/cpukit + * spsize/size.c: Add next step in SMP support. This adds an allocated + array of the Per_CPU structures to support multiple cpus vs a single + instance of the structure which is still used if SMP support is + disabled. Configuration support is also added to explicitly enable or + disable SMP. But SMP can only be enabled for the CPUs which will + support it initially -- SPARC and i386. With the stub BSP support, a + BSP can be run as a single core SMP system from an RTEMS data + structure standpoint. + 2011-03-16 Joel Sherrill * spfifo05/init.c: Console interrupts perturb test. diff --git a/testsuites/sptests/spsize/size.c b/testsuites/sptests/spsize/size.c index 9ecc1c13d3..8215b763e2 100644 --- a/testsuites/sptests/spsize/size.c +++ b/testsuites/sptests/spsize/size.c @@ -340,7 +340,11 @@ uninitialized = /*partmp.h*/ 0 + #endif -/*percpu.h*/ (sizeof _Per_CPU_Information) + +#if defined(RTEMS_SMP) +/*percpu.h*/ (_SMP_Processor_count * sizeof(Per_CPU_Control)) + +#else +/*percpu.h*/ (sizeof (Per_CPU_Control) ) + +#endif /*ratemon.h*/ (sizeof _Rate_monotonic_Information) + -- cgit v1.2.3