diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-30 23:24:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-30 23:24:48 +0000 |
commit | 3dc936c1449ac05ad9053955cb83f9f0ce629eb8 (patch) | |
tree | 9300a52427233e58091ea2c302fe0236a1806d9a /c/src/tests | |
parent | 2002-07-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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 'c/src/tests')
-rw-r--r-- | c/src/tests/sptests/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/tests/sptests/spsize/size.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/c/src/tests/sptests/ChangeLog b/c/src/tests/sptests/ChangeLog index b2406ccd32..200eb7868f 100644 --- a/c/src/tests/sptests/ChangeLog +++ b/c/src/tests/sptests/ChangeLog @@ -1,3 +1,8 @@ +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. + 2002-07-04 Joel Sherrill <joel@OARcorp.com> * Jump table for single entry point removed. diff --git a/c/src/tests/sptests/spsize/size.c b/c/src/tests/sptests/spsize/size.c index 395343543c..2390cc6de8 100644 --- a/c/src/tests/sptests/spsize/size.c +++ b/c/src/tests/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 |