diff packages/kernel/current/include/thread.inl @ 177:4c750ce71ae3

Merge from eCos master repository on 2001-08-10-19:22:57-BST
author jlarmour
date Fri, 10 Aug 2001 19:27:55 +0000
parents 0d0f03f76f6a
children f62680ef1804
line wrap: on
line diff
--- a/packages/kernel/current/include/thread.inl
+++ b/packages/kernel/current/include/thread.inl
@@ -88,6 +88,8 @@ inline void Cyg_HardwareThread::check_st
     cyg_uint32 *top =  (cyg_uint32 *)(stack_base + stack_size);
     cyg_ucount32 i;
 
+    CYG_INSTRUMENT_THREAD(CHECK_STACK, base, top );
+    
     CYG_ASSERT( 0 == ((sizeof(CYG_WORD)-1) & (cyg_uint32)base), "stack base not word aligned" );
     CYG_ASSERT( 0 == ((sizeof(CYG_WORD)-1) & (cyg_uint32)top),  "stack  top not word aligned" );
 
@@ -165,6 +167,8 @@ inline void Cyg_HardwareThread::attach_s
 
         unsigned int i;
 
+        CYG_INSTRUMENT_THREAD(ATTACH_STACK, base, top );
+        
         CYG_ASSERT( NULL != base, "stack base non-NULL" );
         CYG_ASSERT( 0 == ((sizeof(CYG_WORD)-1) & (cyg_uint32)base), "stack base alignment" );
         CYG_ASSERT( 0 == ((sizeof(CYG_WORD)-1) & (cyg_uint32)top),  "stack  top alignment" );