Changeset 547 for soft/giet_vm/giet_kernel/sys_handler.c
- Timestamp:
- Apr 5, 2015, 12:09:09 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/sys_handler.c
r536 r547 22 22 #include <giet_config.h> 23 23 #include <mapping_info.h> 24 #include <irq_handler.h> 24 25 #include <io.h> 25 26 … … 517 518 else 518 519 { 519 _set_context_slot( CTX_TTY_ID, channel ); 520 return 0; 521 } 520 } 521 522 // allocate a WTI mailbox to the calling proc if external IRQ 523 unsigned int unused; 524 if ( USE_PIC ) _ext_irq_alloc( ISR_TTY_RX , channel , &unused ); 525 526 // update calling task index 527 _set_context_slot( CTX_TTY_ID, channel ); 528 529 return 0; 522 530 } 523 531 … … 700 708 unsigned int thread = _get_context_slot( CTX_TRDID_ID ); 701 709 _printf("\n[GIET DEBUG NIC] Task %d enters sys_nic_alloc() at cycle %d\n" 702 " nic_channel = %d / cma_channel = %d\n"710 " nic_channel = %d / cma_channel = %d\n", 703 711 thread , _get_proctime() , nic_channel , cma_channel ); 704 712 #endif … … 754 762 755 763 #if GIET_DEBUG_NIC 756 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_start()" 757 " allocates container in cluster[%d,%d] : vaddr = %x / paddr = %l\n", 764 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_alloc()" 765 " allocates container in cluster[%d,%d]\n" 766 " vaddr = %x / paddr = %l\n", 758 767 thread , cx , cy , vaddr , cont_paddr ); 759 768 #endif … … 781 790 782 791 #if GIET_DEBUG_NIC 783 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_start()" 784 " get NIC chbuf : paddr = %l\n", 792 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_alloc() get NIC chbuf : paddr = %l\n", 785 793 thread , nic_chbuf_pbase ); 786 794 #endif … … 793 801 794 802 #if GIET_DEBUG_NIC 795 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_ start()"796 " get kernel chbuf :vaddr = %x / paddr = %l\n",803 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_alloc() get kernel chbuf\n" 804 " vaddr = %x / paddr = %l\n", 797 805 thread , vaddr , ker_chbuf_pbase ); 798 806 #endif … … 851 859 #if GIET_DEBUG_NIC 852 860 unsigned int thread = _get_context_slot( CTX_TRDID_ID ); 853 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_start() at cycle %d "854 " get NIC channel = %d / CMA channel = %d\n",861 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_start() at cycle %d\n" 862 " get NIC channel = %d / CMA channel = %d\n", 855 863 thread, _get_proctime(), nic_channel, cma_channel ); 856 864 #endif … … 969 977 970 978 #if GIET_DEBUG_NIC 971 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_move() read buf fer descriptor%d\n"972 " at cycle = %d /paddr = %l / buffer descriptor = %l\n",979 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_move() read buf_desc %d at cycle %d\n" 980 " paddr = %l / buffer descriptor = %l\n", 973 981 thread, index, _get_proctime(), buffer_desc_paddr, buffer_descriptor ); 974 982 #endif … … 993 1001 NIC_CONTAINER_SIZE ); 994 1002 #if GIET_DEBUG_NIC 995 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_move() transfer "996 " kernel buffer %lto user buffer %l at cycle %d\n",1003 _printf("\n[GIET DEBUG NIC] Task %d in _sys_nic_move() transfer kernel buffer %l\n" 1004 " to user buffer %l at cycle %d\n", 997 1005 thread , kernel_buffer_paddr , user_buffer_paddr , _get_proctime() ); 998 1006 #endif
Note: See TracChangeset
for help on using the changeset viewer.