Changeset 442 for trunk/user/init/init.c
- Timestamp:
- May 16, 2018, 4:13:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/init/init.c
r441 r442 18 18 #include <pthread.h> 19 19 20 #define DEBUG_ INIT_PROCESS 120 #define DEBUG_PROCESS_INIT 0 21 21 22 22 // TODO make the cxy computation portable [AG] … … 27 27 { 28 28 int i; 29 int delay;30 29 int ret_fork; // fork return value 31 30 int ret_exec; // exec return value … … 70 69 snprintf( string , 64 , "[INIT] created KSH[%d] / pid = %x", i , ret_fork ); 71 70 display_string( string ); 72 73 // INIT wait a fixed delay between two forks74 for( delay = 0 ; delay < 50000 ; delay++ ) asm volatile( "nop" );75 71 } 76 72 } 77 73 78 #if DEBUG_ INIT_PROCESS74 #if DEBUG_PROCESS_INIT 79 75 80 76 unsigned int x_size; // number of clusters in a row … … 154 150 else // we are in INIT process 155 151 { 156 // INIT display new CHILDprocess PID157 snprintf( string , 64 , "[INIT] forked CHILD/ pid = %x", ret_fork );152 // INIT display new KSH process PID 153 snprintf( string , 64 , "[INIT] re-created KSH / pid = %x", ret_fork ); 158 154 display_string( string ); 159 155 } 160 156 } // end KSH kill handling 161 157 162 #if DEBUG_ INIT_PROCESS158 #if DEBUG_PROCESS_INIT 163 159 164 160 // INIT displays processes and threads in all clusters
Note: See TracChangeset
for help on using the changeset viewer.