From 57c67302733aff44c37177dd26badac2c78145a7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 30 Jul 2002 23:24:30 +0000 Subject: 2002-07-30 Joel Sherrill * stackchk/check.c: Don't reference the RTEMS allocated interrupt stack if the port doesn't configure using it. --- c/src/libmisc/stackchk/check.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/src/libmisc/stackchk/check.c') diff --git a/c/src/libmisc/stackchk/check.c b/c/src/libmisc/stackchk/check.c index 297f161752..c0e01728c0 100644 --- a/c/src/libmisc/stackchk/check.c +++ b/c/src/libmisc/stackchk/check.c @@ -223,6 +223,7 @@ void Stack_check_Initialize( void ) * If appropriate, setup the interrupt stack for high water testing * also. */ +#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) { stack_check_interrupt_stack.area = _CPU_Interrupt_stack_low; @@ -231,6 +232,7 @@ void Stack_check_Initialize( void ) stack_check_dope_stack(&stack_check_interrupt_stack); } +#endif #ifdef DONT_USE_FATAL_EXTENSION #ifdef RTEMS_DEBUG -- cgit v1.2.3