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/ChangeLog | 5 +++++ c/src/libmisc/stackchk/check.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'c/src/libmisc') diff --git a/c/src/libmisc/ChangeLog b/c/src/libmisc/ChangeLog index 883a0a833e..a8ff87e9d3 100644 --- a/c/src/libmisc/ChangeLog +++ b/c/src/libmisc/ChangeLog @@ -1,3 +1,8 @@ +2002-07-30 Joel Sherrill + + * stackchk/check.c: Don't reference the RTEMS allocated interrupt + stack if the port doesn't configure using it. + 2002-07-24 Joel Sherrill * wrapup/Makefile.am: Temporarily don't include serdbg since it 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