Changeset 574 for trunk/user/init/init.c
- Timestamp:
- Oct 5, 2018, 12:26:30 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/init/init.c
r528 r574 18 18 #include <pthread.h> 19 19 #include <almosmkh.h> 20 #include <hal_macros.h> 20 21 #include <sys/wait.h> 21 22 22 23 #define DEBUG_PROCESS_INIT 0 23 24 24 // TODO make the cxy computation portable25 // and avoid this TSAR specific define [AG]26 27 #define CXY_FROM_XY( x , y ) ((x<<4) + y)28 29 25 // TODO improve the get_config() syscall to return nb_txt_channels 30 26 // and avoid the hard_config include [AG] 31 27 32 ////////// 28 // TODO introduce a communication channel between INIT and KSH 29 // to allow KSH to signal INIT the exec completion. 30 31 //////////////// 33 32 int main( void ) 34 33 { … … 39 38 int status; // used by the wait syscall 40 39 char string[64]; // log messages on kernel TXT0 40 41 #if DEBUG_PROCESS_INIT 42 display_string("[INIT] process enters"); 43 #endif 41 44 42 45 // check number of TXT channels … … 105 108 for( x = 0 ; x < x_size ; x++ ) 106 109 { 107 for( y = 0 ; y < y_size - 1 ; y++ ) 108 { 109 cxy = CXY_FROM_XY( x , y ); 110 cxy = HAL_CXY_FROM_XY( x , y ); 111 display_cluster_processes( cxy ); 112 for( lid = 0 ; lid < ncores ; lid++ ) 113 { 110 114 display_cluster_processes( cxy ); 111 for( lid = 0 ; lid < ncores ; lid++ )112 {113 display_sched( cxy , lid );114 }115 115 } 116 116 } … … 180 180 for( y = 0 ; y < y_size ; y++ ) 181 181 { 182 cxy = CXY_FROM_XY( x , y );182 cxy = HAL_CXY_FROM_XY( x , y ); 183 183 display_cluster_processes( cxy ); 184 184 for( lid = 0 ; lid < ncores ; lid++ )
Note: See TracChangeset
for help on using the changeset viewer.