From 11290355c9454c575d56c7928a725fd95e88d6f8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 29 Sep 1995 17:19:16 +0000 Subject: all targets compile .. tony's patches in place --- c/src/libmisc/stackchk/check.c | 9 ++++++++- c/src/libmisc/stackchk/internal.h | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'c/src/libmisc/stackchk') diff --git a/c/src/libmisc/stackchk/check.c b/c/src/libmisc/stackchk/check.c index c2ee9a0a10..29939d6d4c 100644 --- a/c/src/libmisc/stackchk/check.c +++ b/c/src/libmisc/stackchk/check.c @@ -128,10 +128,12 @@ void Stack_check_Initialize( void ) rtems_status_code status; Objects_Id id_ignored; unsigned32 *p; +#if 0 unsigned32 i; unsigned32 class_index; Thread_Control *the_thread; Objects_Information *information; +#endif if (stack_check_initialized) return; @@ -420,7 +422,11 @@ void Stack_check_Dump_threads_usage( * Stack_check_Fatal_extension */ -void Stack_check_Fatal_extension( unsigned32 status ) +void Stack_check_Fatal_extension( + Internal_errors_Source source, + boolean is_internal, + unsigned32 status +) { if (status == 0) Stack_check_Dump_usage(); @@ -443,6 +449,7 @@ void Stack_check_Dump_usage( void ) if (stack_check_initialized == 0) return; + printf("Stack usage by thread\n"); printf( " ID NAME LOW HIGH AVAILABLE USED\n" ); diff --git a/c/src/libmisc/stackchk/internal.h b/c/src/libmisc/stackchk/internal.h index 7cecbd6e1a..e98ec7e92e 100644 --- a/c/src/libmisc/stackchk/internal.h +++ b/c/src/libmisc/stackchk/internal.h @@ -77,7 +77,9 @@ void Stack_check_Switch_extension( */ void Stack_check_Fatal_extension( - unsigned32 + Internal_errors_Source source, + boolean is_internal, + unsigned32 status ); /* -- cgit v1.2.3