Changeset 562
- Timestamp:
- Sep 21, 2018, 10:27:06 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot.c
r557 r562 405 405 boot_info->x_width = header->x_width; 406 406 boot_info->y_width = header->y_width; 407 boot_info->x_max = header->x_size; // [FIXME]408 boot_info->y_max = header->name[5] == 'l' ? header->y_size - 1 : header->y_size; // [FIXME]409 407 boot_info->paddr_width = header->paddr_width; 410 408 boot_info->io_cxy = header->io_cxy; -
trunk/kernel/kern/cluster.c
r561 r562 72 72 cluster->x_size = info->x_size; 73 73 cluster->y_size = info->y_size; 74 cluster->x_max = info->x_max; // [FIXME]75 cluster->y_max = info->y_max; // [FIXME]76 74 cluster->io_cxy = info->io_cxy; 77 75 … … 109 107 110 108 // initialises DQDT 111 cluster->dqdt_root_level = dqdt_init( info->x_ max, // [FIXME]112 info->y_ max, // [FIXME]109 cluster->dqdt_root_level = dqdt_init( info->x_size, 110 info->y_size, 113 111 info->y_width ) - 1; 114 112 -
trunk/kernel/kern/cluster.h
r561 r562 105 105 uint32_t x_size; /*! number of clusters in a row (can be 1) */ 106 106 uint32_t y_size; /*! number of clusters in a column (can be 1) */ 107 uint32_t x_max; // [FIXME]108 uint32_t y_max; // [FIXME]109 107 uint32_t cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y]; 110 108 cxy_t io_cxy; /*! io cluster identifier */ -
trunk/kernel/kern/dqdt.c
r492 r562 69 69 void dqdt_display( void ) 70 70 { 71 /* 71 72 reg_t save_sr; 72 73 … … 95 96 // release lock 96 97 remote_spinlock_unlock_busy( lock_xp , save_sr ); 98 */ 97 99 } 98 100 … … 120 122 uint32_t level_max = (bits_log2(size_ext * size_ext) >> 1) + 1; 121 123 124 return level_max; 125 126 /* 122 127 // get cluster coordinates 123 128 uint32_t x = local_cxy >> y_width; … … 189 194 190 195 return level_max; 196 */ 191 197 192 198 } // end dqdt_init() … … 243 249 void dqdt_update_threads( int32_t increment ) 244 250 { 251 return; 252 /* 245 253 cluster_t * cluster = LOCAL_CLUSTER; 246 254 dqdt_node_t * node = &cluster->dqdt_tbl[0]; … … 251 259 // propagate to DQDT upper levels 252 260 if( node->parent != XPTR_NULL ) dqdt_propagate_threads( node->parent , increment ); 261 */ 253 262 } 254 263 … … 256 265 void dqdt_update_pages( int32_t increment ) 257 266 { 267 return; 268 /* 258 269 cluster_t * cluster = LOCAL_CLUSTER; 259 270 dqdt_node_t * node = &cluster->dqdt_tbl[0]; … … 264 275 // propagate to DQDT upper levels 265 276 if( node->parent != XPTR_NULL ) dqdt_propagate_pages( node->parent , increment ); 277 */ 266 278 } 267 279 … … 318 330 cxy_t dqdt_get_cluster_for_process( void ) 319 331 { 332 return cluster_random_select(); 333 /* 320 334 // build extended pointer on DQDT root node 321 335 cluster_t * cluster = LOCAL_CLUSTER; … … 325 339 // call recursive function 326 340 return dqdt_select_cluster( root_xp , false ); 341 */ 327 342 } 328 343 … … 330 345 cxy_t dqdt_get_cluster_for_memory( void ) 331 346 { 347 return cluster_random_select(); 348 /* 332 349 // build extended pointer on DQDT root node 333 350 cluster_t * cluster = LOCAL_CLUSTER; … … 337 354 // call recursive function 338 355 return dqdt_select_cluster( root_xp , true ); 339 } 340 356 */ 357 } 358 -
trunk/tools/arch_info/boot_info.h
r557 r562 112 112 uint32_t x_size; /*! number of cluster in a row */ 113 113 uint32_t y_size; /*! number of cluster in a column */ 114 uint32_t x_max; /*! [FIXME] Nb of non-empty cluster in row */115 uint32_t y_max; /*! [FIXME] Nb of non_empty cluster in col */116 114 uint32_t cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y]; 117 115 /*! An array of infos about all clusters */
Note: See TracChangeset
for help on using the changeset viewer.