Changeset 3a4ae6c in rtems for c/src/libmisc/stackchk
- Timestamp:
- 09/11/95 19:35:39 (29 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ced11f99
- Parents:
- 5072b07
- Location:
- c/src/libmisc/stackchk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/libmisc/stackchk/check.c
r5072b07 r3a4ae6c 19 19 */ 20 20 21 #include <rtems/system.h> 22 #include <rtems/extension.h> 23 #include <rtems/fatal.h> 24 #include <rtems/heap.h> 25 #include <rtems/stack.h> 26 #include <rtems/thread.h> 27 #ifdef XXX_RTEMS_H_FIXED 28 #include <bsp.h> 29 #else 30 #include <rtems/config.h> 21 #include <rtems.h> 22 31 23 extern rtems_configuration_table BSP_Configuration; 32 #endif33 24 34 25 #include <assert.h> … … 57 48 0, /* rtems_task_delete */ 58 49 Stack_check_Switch_extension, /* task_switch */ 50 0, /* task_post_switch */ 59 51 Stack_check_Begin_extension, /* task_begin */ 60 52 0, /* task_exitted */ … … 134 126 void Stack_check_Initialize( void ) 135 127 { 136 rtems_status_code status; 137 Objects_Id id_ignored; 138 unsigned32 *p; 128 rtems_status_code status; 129 Objects_Id id_ignored; 130 unsigned32 *p; 131 unsigned32 i; 132 unsigned32 class_index; 133 Thread_Control *the_thread; 134 Objects_Information *information; 139 135 140 136 if (stack_check_initialized) … … 172 168 */ 173 169 170 /* XXX 171 * 172 * Technically this has not been done for any task created before this 173 * happened. So just run through them and fix the situation. 174 */ 175 #if 0 174 176 if (_Thread_Executing) 175 177 { 176 178 Stack_check_Create_extension(_Thread_Executing, _Thread_Executing); 177 179 } 180 #endif 181 182 #if 0 183 for ( class_index = OBJECTS_CLASSES_FIRST ; 184 class_index <= OBJECTS_CLASSES_LAST ; 185 class_index++ ) { 186 information = _Objects_Information_table[ class_index ]; 187 if ( information && information->is_thread ) { 188 for ( i=1 ; i <= information->maximum ; i++ ) { 189 the_thread = (Thread_Control *)information->local_table[ i ]; 190 Stack_check_Create_extension( the_thread, the_thread ); 191 } 192 } 193 } 194 #endif 178 195 179 196 /* … … 198 215 */ 199 216 200 voidStack_check_Create_extension(217 boolean Stack_check_Create_extension( 201 218 Thread_Control *running, 202 219 Thread_Control *the_thread 203 220 ) 204 221 { 205 if (the_thread && (the_thread != _Thread_Executing))222 if (the_thread /* XXX && (the_thread != _Thread_Executing) */ ) 206 223 stack_check_dope_stack(&the_thread->Start.Initial_stack); 224 225 return TRUE; 207 226 } 208 227 -
c/src/libmisc/stackchk/internal.h
r5072b07 r3a4ae6c 51 51 */ 52 52 53 voidStack_check_Create_extension(53 boolean Stack_check_Create_extension( 54 54 Thread_Control *running, 55 55 Thread_Control *the_thread
Note: See TracChangeset
for help on using the changeset viewer.