Changeset 317 for trunk/kernel/kern/kernel_init.c
- Timestamp:
- Aug 4, 2017, 2:03:44 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r296 r317 656 656 } 657 657 return EINVAL; 658 }659 660 ////////////////////////////////////////////////////////////////////////////////////////////661 // This function display on TXT0 the content of the external chdev directory,662 // in the local cluster.663 ////////////////////////////////////////////////////////////////////////////////////////////664 static void chdev_dir_display( )665 {666 cxy_t iob_cxy = GET_CXY( chdev_dir.iob );667 chdev_t * iob_ptr = (chdev_t *)GET_PTR( chdev_dir.iob );668 xptr_t iob_base = hal_remote_lwd( XPTR( iob_cxy , &iob_ptr->base ) );669 670 cxy_t pic_cxy = GET_CXY( chdev_dir.pic );671 chdev_t * pic_ptr = (chdev_t *)GET_PTR( chdev_dir.pic );672 xptr_t pic_base = hal_remote_lwd( XPTR( pic_cxy , &pic_ptr->base ) );673 674 cxy_t txt0_cxy = GET_CXY( chdev_dir.txt[0] );675 chdev_t * txt0_ptr = (chdev_t *)GET_PTR( chdev_dir.txt[0] );676 xptr_t txt0_base = hal_remote_lwd( XPTR( txt0_cxy , &txt0_ptr->base ) );677 678 cxy_t txt1_cxy = GET_CXY( chdev_dir.txt[1] );679 chdev_t * txt1_ptr = (chdev_t *)GET_PTR( chdev_dir.txt[1] );680 xptr_t txt1_base = hal_remote_lwd( XPTR( txt1_cxy , &txt1_ptr->base ) );681 682 cxy_t txt2_cxy = GET_CXY( chdev_dir.txt[2] );683 chdev_t * txt2_ptr = (chdev_t *)GET_PTR( chdev_dir.txt[2] );684 xptr_t txt2_base = hal_remote_lwd( XPTR( txt2_cxy , &txt2_ptr->base ) );685 686 cxy_t ioc_cxy = GET_CXY( chdev_dir.ioc[0] );687 chdev_t * ioc_ptr = (chdev_t *)GET_PTR( chdev_dir.ioc[0] );688 xptr_t ioc_base = hal_remote_lwd( XPTR( ioc_cxy , &ioc_ptr->base ) );689 690 cxy_t fbf_cxy = GET_CXY( chdev_dir.fbf[0] );691 chdev_t * fbf_ptr = (chdev_t *)GET_PTR( chdev_dir.fbf[0] );692 xptr_t fbf_base = hal_remote_lwd( XPTR( fbf_cxy , &fbf_ptr->base ) );693 694 cxy_t nic_rx_cxy = GET_CXY( chdev_dir.nic_rx[0] );695 chdev_t * nic_rx_ptr = (chdev_t *)GET_PTR( chdev_dir.nic_rx[0] );696 xptr_t nic_rx_base = hal_remote_lwd( XPTR( nic_rx_cxy , &nic_rx_ptr->base ) );697 698 cxy_t nic_tx_cxy = GET_CXY( chdev_dir.nic_tx[0] );699 chdev_t * nic_tx_ptr = (chdev_t *)GET_PTR( chdev_dir.nic_tx[0] );700 xptr_t nic_tx_base = hal_remote_lwd( XPTR( nic_tx_cxy , &nic_tx_ptr->base ) );701 702 printk("\n*** external chdev directory in cluster %x\n"703 " - iob = %l / base = %l\n"704 " - pic = %l / base = %l\n"705 " - txt[0] = %l / base = %l\n"706 " - txt[1] = %l / base = %l\n"707 " - txt[2] = %l / base = %l\n"708 " - ioc[0] = %l / base = %l\n"709 " - fbf[0] = %l / base = %l\n"710 " - nic_rx[0] = %l / base = %l\n"711 " - nic_tx[0] = %l / base = %l\n",712 local_cxy,713 chdev_dir.iob, iob_base,714 chdev_dir.pic, pic_base,715 chdev_dir.txt[0], txt0_base,716 chdev_dir.txt[1], txt1_base,717 chdev_dir.txt[2], txt2_base,718 chdev_dir.ioc[0], ioc_base,719 chdev_dir.fbf[0], fbf_base,720 chdev_dir.nic_rx[0], nic_rx_base,721 chdev_dir.nic_tx[0], nic_tx_base );722 658 } 723 659
Note: See TracChangeset
for help on using the changeset viewer.