summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/sptests/ChangeLog12
-rw-r--r--testsuites/sptests/spsize/size.c6
2 files changed, 17 insertions, 1 deletions
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 <jennifer.averett@OARcorp.com>
+
+ 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 <joel.sherrill@oarcorp.com>
* 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) +