Added condition compile flag for dump of stack usage information on

system exit.
This commit is contained in:
Joel Sherrill
1996-01-19 22:21:16 +00:00
parent eaa442fc46
commit 2931001675
3 changed files with 30 additions and 0 deletions

View File

@@ -103,6 +103,12 @@ Stack_check_Control Stack_check_Pattern;
Stack_Control stack_check_interrupt_stack;
/*
* Prototypes necessary for forward references
*/
void Stack_check_Dump_usage( void );
/*
* Fill an entire stack area with BYTE_PATTERN.
* This will be used by a Fatal extension to check for
@@ -162,6 +168,10 @@ void Stack_check_Initialize( void )
Stack_check_Blown_task = 0;
#ifdef STACK_CHECKER_REPORT_USAGE
atexit( Stack_check_Dump_usage );
#endif
/*
* If installed by a task, that task will not get setup properly
* since it missed out on the create hook. This will cause a