From 3dc936c1449ac05ad9053955cb83f9f0ce629eb8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 30 Jul 2002 23:24:48 +0000 Subject: 2002-07-30 Joel Sherrill * spsize/size.c: Don't reference the RTEMS allocated interrupt stack if the port doesn't configure using it. --- c/src/tests/sptests/spsize/size.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'c/src/tests/sptests/spsize/size.c') 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 -- cgit v1.2.3