summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spsize/size.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-30 23:24:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-30 23:24:48 +0000
commit3dc936c1449ac05ad9053955cb83f9f0ce629eb8 (patch)
tree9300a52427233e58091ea2c302fe0236a1806d9a /testsuites/sptests/spsize/size.c
parent2002-07-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-3dc936c1449ac05ad9053955cb83f9f0ce629eb8.tar.bz2
2002-07-30 Joel Sherrill <joel@OARcorp.com>
* spsize/size.c: Don't reference the RTEMS allocated interrupt stack if the port doesn't configure using it.
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/spsize/size.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuites/sptests/spsize/size.c b/testsuites/sptests/spsize/size.c
index 395343543c..2390cc6de8 100644
--- a/testsuites/sptests/spsize/size.c
+++ b/testsuites/sptests/spsize/size.c
@@ -398,9 +398,12 @@ uninitialized = 0;
#ifdef __i386__
/* cpu.h */
-uninitialized += (sizeof _CPU_Null_fp_context) +
- (sizeof _CPU_Interrupt_stack_low) +
+uninitialized += (sizeof _CPU_Null_fp_context);
+
+#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
+uninitialized += (sizeof _CPU_Interrupt_stack_low) +
(sizeof _CPU_Interrupt_stack_high);
+#endif
#endif