From 71f4beb0cd6196a3dcd7d1aacb82645debe745b2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 15 Apr 1998 15:08:49 +0000 Subject: Stack check now initialized as part of initial extension set. --- c/src/libmisc/stackchk/check.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'c/src/libmisc/stackchk/check.c') diff --git a/c/src/libmisc/stackchk/check.c b/c/src/libmisc/stackchk/check.c index a226e926ea..1f1923f1d8 100644 --- a/c/src/libmisc/stackchk/check.c +++ b/c/src/libmisc/stackchk/check.c @@ -175,12 +175,14 @@ void Stack_check_Initialize( void ) p[3] = 0x600D0D06; }; +#if 0 status = rtems_extension_create( rtems_build_name( 'S', 'T', 'C', 'K' ), &Stack_check_Extension_table, &id_ignored ); assert ( status == RTEMS_SUCCESSFUL ); +#endif Stack_check_Blown_task = 0; @@ -254,6 +256,9 @@ boolean Stack_check_Create_extension( Thread_Control *the_thread ) { + if (!stack_check_initialized) + Stack_check_Initialize(); + if (the_thread /* XXX && (the_thread != _Thread_Executing) */ ) stack_check_dope_stack(&the_thread->Start.Initial_stack); @@ -271,6 +276,9 @@ void Stack_check_Begin_extension( { Stack_check_Control *the_pattern; + if (!stack_check_initialized) + Stack_check_Initialize(); + if ( the_thread->Object.id == 0 ) /* skip system tasks */ return; -- cgit v1.2.3