From 5114d3ffd2f5c43c3f82abdbace99d1f5c34c5cd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 2 Aug 2010 18:26:30 +0000 Subject: 2010-08-02 Joel Sherrill * libmisc/stackchk/check.c: If this port does not allocate the interrupt stack, then it must always be a thread stack. Do not include code to print the interrupt stack information. --- cpukit/libmisc/stackchk/check.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'cpukit/libmisc/stackchk') diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index b7273cfba7..3c864a4880 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -420,16 +420,23 @@ void Stack_check_Dump_threads_usage( else used = 0; - if ( the_thread ) { - (*print_handler)( - print_context, - "0x%08" PRIx32 " %4s", - the_thread->Object.id, - rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) - ); - } else { - (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); - } + + #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) + if ( the_thread ) + #endif + { + (*print_handler)( + print_context, + "0x%08" PRIx32 " %4s", + the_thread->Object.id, + rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) + ); + } + #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE) + else { + (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); + } + #endif (*print_handler)( print_context, -- cgit v1.2.3