Changeset 559 for trunk/kernel
- Timestamp:
- Sep 21, 2018, 10:26:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r556 r559 59 59 #include <devfs.h> 60 60 #include <mapper.h> 61 #include <cluster_info.h> 61 62 62 63 /////////////////////////////////////////////////////////////////////////////////////////// … … 255 256 for( x = 0 ; x < info->x_size ; x++ ) 256 257 { 257 for( y = 0 ; y < info->y_ max; y++ ) // [FIXME]258 for( y = 0 ; y < info->y_size; y++ ) // [FIXME] 258 259 { 259 cxy_t cxy = (x<<info->y_width) + y; 260 hal_remote_swd( XPTR( cxy , &chdev_dir.txt_tx[0] ) , 261 XPTR( local_cxy , &txt0_chdev ) ); 260 if (cluster_info_is_active(info->cluster_info[x][y])) { 261 cxy_t cxy = (x<<info->y_width) + y; 262 hal_remote_swd( XPTR( cxy , &chdev_dir.txt_tx[0] ) , 263 XPTR( local_cxy , &txt0_chdev ) ); 264 } 262 265 } 263 266 } … … 314 317 for( x = 0 ; x < info->x_size ; x++ ) 315 318 { 316 for( y = 0 ; y < info->y_ max; y++ ) // [FIXME]319 for( y = 0 ; y < info->y_size; y++ ) // [FIXME] 317 320 { 318 cxy_t cxy = (x<<info->y_width) + y; 319 hal_remote_swd( XPTR( cxy , &chdev_dir.txt_tx[0] ) , 320 XPTR( local_cxy , &txt0_chdev ) ); 321 if (cluster_info_is_active(info->cluster_info[x][y])) { 322 cxy_t cxy = (x<<info->y_width) + y; 323 hal_remote_swd( XPTR( cxy , &chdev_dir.txt_tx[0] ) , 324 XPTR( local_cxy , &txt0_chdev ) ); 325 } 321 326 } 322 327 } … … 380 385 for( x = 0 ; x < info->x_size ; x++ ) 381 386 { 382 for( y = 0 ; y < info->y_ max; y++ ) // [FIXME]387 for( y = 0 ; y < info->y_size; y++ ) // [FIXME] 383 388 { 384 cxy_t cxy = (x<<info->y_width) + y; 385 hal_remote_swd( XPTR( cxy , &chdev_dir.mmc[local_cxy] ), 386 XPTR( local_cxy , chdev_ptr ) ); 389 if (cluster_info_is_active(info->cluster_info[x][y])) { 390 cxy_t cxy = (x<<info->y_width) + y; 391 hal_remote_swd( XPTR( cxy , &chdev_dir.mmc[local_cxy] ), 392 XPTR( local_cxy , chdev_ptr ) ); 393 } 387 394 } 388 395 } … … 458 465 chdev_entry = &chdev_dir.txt_tx[channel]; 459 466 } 460 for ( x = 0; x < info->x_ max; x++ )467 for ( x = 0; x < info->x_size; x++ ) 461 468 { 462 for ( y = 0; y < info->y_ max; y++ )469 for ( y = 0; y < info->y_size; y++ ) 463 470 { 464 cxy_t cxy = (x<<info->y_width) + y; 465 hal_remote_swd( XPTR( cxy, chdev_entry ), 466 XPTR( local_cxy, chdev_ptr ) ); 471 if (cluster_info_is_active(info->cluster_info[x][y])) { 472 cxy_t cxy = (x<<info->y_width) + y; 473 hal_remote_swd( XPTR( cxy, chdev_entry ), 474 XPTR( local_cxy, chdev_ptr ) ); 475 } 467 476 } 468 477 } … … 499 508 // set the IOC fields in all clusters 500 509 xptr_t *chdev_entry = &chdev_dir.ioc[channel]; 501 for ( x = 0; x < info->x_ max; x++ )510 for ( x = 0; x < info->x_size; x++ ) 502 511 { 503 for ( y = 0; y < info->y_ max; y++ )512 for ( y = 0; y < info->y_size; y++ ) 504 513 { 505 cxy_t cxy = (x<<info->y_width) + y; 506 hal_remote_swd( XPTR( cxy, chdev_entry ), 507 XPTR( local_cxy, chdev_ptr ) ); 514 if (cluster_info_is_active(info->cluster_info[x][y])) { 515 cxy_t cxy = (x<<info->y_width) + y; 516 hal_remote_swd( XPTR( cxy, chdev_entry ), 517 XPTR( local_cxy, chdev_ptr ) ); 518 } 508 519 } 509 520 } … … 650 661 for( x = 0 ; x < info->x_size ; x++ ) 651 662 { 652 for ( y = 0 ; y < info->y_max; y++ ) // [FIXME]663 for ( y = 0; y < info->y_size; y++ ) 653 664 { 654 cxy_t cxy = (x<<info->y_width) + y; 655 hal_remote_swd( XPTR( cxy , entry ), 656 XPTR( local_cxy , chdev ) ); 665 if (cluster_info_is_active(info->cluster_info[x][y])) { 666 cxy_t cxy = (x<<info->y_width) + y; 667 hal_remote_swd( XPTR( cxy , entry ), 668 XPTR( local_cxy , chdev ) ); 669 } 657 670 } 658 671 } … … 733 746 for( x = 0 ; x < info->x_size ; x++ ) 734 747 { 735 for( y = 0 ; y < info->y_max; y++ ) // [FIXME] 736 { 737 cxy_t cxy = (x<<info->y_width) + y; 738 hal_remote_swd( XPTR( cxy , entry ) , 739 XPTR( local_cxy , chdev ) ); 748 for ( y = 0; y < info->y_size; y++ ) 749 { 750 if (cluster_info_is_active(info->cluster_info[x][y])) { 751 cxy_t cxy = (x<<info->y_width) + y; 752 hal_remote_swd( XPTR( cxy , entry ) , 753 XPTR( local_cxy , chdev ) ); 754 } 740 755 } 741 756 } … … 747 762 for( x = 0 ; x < info->x_size ; x++ ) 748 763 { 749 for( y = 0 ; y < info->y_max; y++ ) // [FIXME] 750 { 751 cxy_t cxy = (x<<info->y_width) + y; 752 hal_remote_memset( XPTR( cxy , &iopic_input ) , 0xFF , sizeof(iopic_input_t) ); 764 for ( y = 0; y < info->y_size; y++ ) 765 { 766 if (cluster_info_is_active(info->cluster_info[x][y])) { 767 cxy_t cxy = (x<<info->y_width) + y; 768 hal_remote_memset( XPTR( cxy , &iopic_input ) , 0xFF , sizeof(iopic_input_t) ); 769 } 753 770 } 754 771 } … … 784 801 for( x = 0 ; x < info->x_size ; x++ ) 785 802 { 786 for ( y = 0 ; y < info->y_max; y++ ) // [FIXME]803 for ( y = 0; y < info->y_size; y++ ) 787 804 { 788 cxy_t cxy = (x<<info->y_width) + y; 789 hal_remote_swd( XPTR( cxy , ptr ) , id ); 805 if (cluster_info_is_active(info->cluster_info[x][y])) { 806 cxy_t cxy = (x<<info->y_width) + y; 807 hal_remote_swd( XPTR( cxy , ptr ) , id ); 808 } 790 809 } 791 810 }
Note: See TracChangeset
for help on using the changeset viewer.