diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-16 20:08:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-16 20:08:39 +0000 |
commit | b3a7216629914f7ff2c05bc233b6dc2100a265ec (patch) | |
tree | 87120c1193023653cb644b12acb723b931fc2113 /testsuites/sptests/spsize | |
parent | 2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-b3a7216629914f7ff2c05bc233b6dc2100a265ec.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/spsize/size.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) + |