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 | |
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.
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 27 |
2 files changed, 23 insertions, 10 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 991d7812ff..979f967b78 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,11 @@ 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. + +2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/base_fs.c, libcsupport/src/rtems_mkdir.c: Formatting. 2010-07-30 Bharath Suri <bharath.s.jois@gmail.com> 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, |