diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-02 18:26:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-02 18:26:30 +0000 |
commit | 5114d3ffd2f5c43c3f82abdbace99d1f5c34c5cd (patch) | |
tree | f0f50be7d060bb2082b8498e8766a35ce5375a4c /cpukit/libmisc/stackchk | |
parent | 2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-5114d3ffd2f5c43c3f82abdbace99d1f5c34c5cd.tar.bz2 |
2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/libmisc/stackchk')
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 27 |
1 files changed, 17 insertions, 10 deletions
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, |