summaryrefslogtreecommitdiffstats
path: root/c/src/libmisc/stackchk/check.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-15 15:08:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-15 15:08:49 +0000
commit71f4beb0cd6196a3dcd7d1aacb82645debe745b2 (patch)
treec9eebd3afbd0402fff7384293caab2c8f590d93e /c/src/libmisc/stackchk/check.c
parentPer suggestion from Eric Norum, went from one initial extension set (diff)
downloadrtems-71f4beb0cd6196a3dcd7d1aacb82645debe745b2.tar.bz2
Stack check now initialized as part of initial extension set.
Diffstat (limited to 'c/src/libmisc/stackchk/check.c')
-rw-r--r--c/src/libmisc/stackchk/check.c8
1 files changed, 8 insertions, 0 deletions
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;