Changeset 438 for trunk/user
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/init/init.c
r437 r438 23 23 int main() 24 24 { 25 int i; 26 int ret_fork; // fork return value 27 int ret_exec; // fork return value 28 int rcv_pid; // pid received from the wait syscall 29 int status; // used by the wait syscall 30 char string[64]; 25 int i; 26 int delay; 27 int ret_fork; // fork return value 28 int ret_exec; // exec return value 29 int rcv_pid; // pid received from the wait syscall 30 int status; // used by the wait syscall 31 char string[64]; // log messages on kernel TXT0 31 32 32 33 // check number of TXT channels … … 66 67 snprintf( string , 64 , "INIT created KSH[%d] / pid = %x", i , ret_fork ); 67 68 display_string( string ); 69 70 // INIT wait a fixed delay between two forks 71 for( delay = 0 ; delay < 50000 ; delay++ ) asm volatile( "nop" ); 68 72 } 69 73 } 70 74 71 // display processes and threads in clusters 0 & 175 // INIT display processes and threads in clusters 0 & 1 72 76 display_cluster_processes( 0 ); 73 77 display_sched( 0 , 0 ); … … 128 132 display_string( string ); 129 133 } 130 } // end KSH kill handling 131 } 134 } // end KSH kill handling 135 136 // INIT wait a fixed delay 137 for( delay = 0 ; delay < 50000 ; delay++ ) asm volatile( "nop" ); 138 139 // INIT display processes and threads in clusters 0 & 1 140 display_cluster_processes( 0 ); 141 display_sched( 0 , 0 ); 142 display_cluster_processes( 1 ); 143 display_sched( 1 , 0 ); 144 145 } // end while waiting KSH[i] termination 132 146 133 147 } // end main()
Note: See TracChangeset
for help on using the changeset viewer.