Changeset 406 for trunk/kernel/devices
- Timestamp:
- Aug 29, 2017, 12:03:37 PM (7 years ago)
- Location:
- trunk/kernel/devices
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_dma.c
r296 r406 88 88 thread_t * this = CURRENT_THREAD; 89 89 90 dma_dmsg("\n[ INFO] %s : enters for thread %x / dst = %l /src = %l / size = %x\n",90 dma_dmsg("\n[DMSG] %s : enters for thread %x / dst = %l /src = %l / size = %x\n", 91 91 __FUNCTION__ , this->trdid , dst_xp , src_xp , size ); 92 92 … … 110 110 chdev_register_command( dev_xp , this ); 111 111 112 dma_dmsg("\n[ INFO] %s : completes for thread %x / error = %d\n",112 dma_dmsg("\n[DMSG] %s : completes for thread %x / error = %d\n", 113 113 __FUNCTION__ , this->trdid , this->dma_cmd.error ); 114 114 -
trunk/kernel/devices/dev_fbf.c
r279 r406 143 143 } 144 144 145 fbf_dmsg("\n[ INFO] %s : thread %x in process %x / vaddr = %p / paddr = %l\n",145 fbf_dmsg("\n[DMSG] %s : thread %x in process %x / vaddr = %p / paddr = %l\n", 146 146 __FUNCTION__ , this->trdid , this->process->pid , buffer , buf_paddr ); 147 147 -
trunk/kernel/devices/dev_ioc.c
r401 r406 99 99 thread_t * this = CURRENT_THREAD; // pointer on client thread 100 100 101 ioc_dmsg("\n[ INFO] %s : thread %x in process %x"101 ioc_dmsg("\n[DMSG] %s : thread %x in process %x" 102 102 " for lba = %x / buffer = %x / at cycle %d\n", 103 103 __FUNCTION__ , this->trdid , this->process->pid , … … 128 128 chdev_register_command( dev_xp , this ); 129 129 130 ioc_dmsg("\n[ INFO] in %s : thread %x in process %x"130 ioc_dmsg("\n[DMSG] in %s : thread %x in process %x" 131 131 " completes / error = %d / at cycle %d\n", 132 132 __FUNCTION__ , this->trdid , this->process->pid , … … 162 162 thread_t * this = CURRENT_THREAD; 163 163 164 ioc_dmsg("\n[ INFO] %s : core[%x,%d] enter for %d blocks / lba = %x / cycle %d\n",164 ioc_dmsg("\n[DMSG] %s : core[%x,%d] enter for %d blocks / lba = %x / cycle %d\n", 165 165 __FUNCTION__ , local_cxy , this->core->lid , count , lba , hal_time_stamp() ); 166 166 … … 199 199 dev_pic_enable_irq( lid , ioc_xp ); 200 200 201 ioc_dmsg("\n[ INFO] %s : core[%x,%d] exit / error = %d / cycle %d\n",201 ioc_dmsg("\n[DMSG] %s : core[%x,%d] exit / error = %d / cycle %d\n", 202 202 __FUNCTION__ , local_cxy , this->core->lid , this->ioc_cmd.error , hal_time_stamp() ); 203 203 -
trunk/kernel/devices/dev_mmc.c
r279 r406 99 99 thread_t * this = CURRENT_THREAD; 100 100 101 mmc_dmsg("\n[ INFO] %s enters for thread %x in process %x / buf_xp = %l\n",101 mmc_dmsg("\n[DMSG] %s enters for thread %x in process %x / buf_xp = %l\n", 102 102 __FUNCTION__ , this->trdid , this->process->pid , buf_xp ); 103 103 … … 124 124 error = dev_mmc_access( this ); 125 125 126 mmc_dmsg("\n[ INFO] %s completes for thread %x in process %x / error = %d\n",126 mmc_dmsg("\n[DMSG] %s completes for thread %x in process %x / error = %d\n", 127 127 __FUNCTION__ , this->trdid , this->process->pid , error ); 128 128 … … 139 139 thread_t * this = CURRENT_THREAD; 140 140 141 mmc_dmsg("\n[ INFO] %s enters for thread %x in process %x / buf_xp = %l\n",141 mmc_dmsg("\n[DMSG] %s enters for thread %x in process %x / buf_xp = %l\n", 142 142 __FUNCTION__ , this->trdid , this->process->pid , buf_xp ); 143 143 … … 164 164 error = dev_mmc_access( this ); 165 165 166 mmc_dmsg("\n[ INFO] %s completes for thread %x in process %x / error = %d\n",166 mmc_dmsg("\n[DMSG] %s completes for thread %x in process %x / error = %d\n", 167 167 __FUNCTION__ , this->trdid , this->process->pid , error ); 168 168 -
trunk/kernel/devices/dev_nic.c
r296 r406 97 97 core_t * core = thread_ptr->core; 98 98 99 nic_dmsg("\n[ INFO] %s enters for NIC-RX thread on core %d in cluster %x\n",99 nic_dmsg("\n[DMSG] %s enters for NIC-RX thread on core %d in cluster %x\n", 100 100 __FUNCTION__ , core->lid , local_cxy ); 101 101 … … 147 147 pkd->length = thread_ptr->nic_cmd.length; 148 148 149 nic_dmsg("\n[ INFO] %s exit for NIC-RX thread on core %d in cluster %x\n",149 nic_dmsg("\n[DMSG] %s exit for NIC-RX thread on core %d in cluster %x\n", 150 150 __FUNCTION__ , core->lid , local_cxy ); 151 151 … … 167 167 core_t * core = thread_ptr->core; 168 168 169 nic_dmsg("\n[ INFO] %s enters for NIC-RX thread on core %d in cluster %x\n",169 nic_dmsg("\n[DMSG] %s enters for NIC-RX thread on core %d in cluster %x\n", 170 170 __FUNCTION__ , core->lid , local_cxy ); 171 171 … … 215 215 if( error ) return error; 216 216 217 nic_dmsg("\n[ INFO] %s exit for NIC-TX thread on core %d in cluster %x\n",217 nic_dmsg("\n[DMSG] %s exit for NIC-TX thread on core %d in cluster %x\n", 218 218 __FUNCTION__ , core->lid , local_cxy ); 219 219 -
trunk/kernel/devices/dev_pic.c
r337 r406 83 83 xptr_t src_chdev_xp ) 84 84 { 85 irq_dmsg("\n[ INFO] %s : core = [%x,%d] / source_chdev_xp = %l\n",86 __FUNCTION__ , local_cxy , lid , src_chdev_xp);85 irq_dmsg("\n[DMSG] %s : core = [%x,%d] / src_chdev_cxy = %x / src_chdev_ptr = %x\n", 86 __FUNCTION__ , local_cxy , lid , GET_CXY(src_chdev_xp) , GET_PTR(src_chdev_xp) ); 87 87 88 88 // get pointer on PIC chdev … … 101 101 xptr_t src_chdev_xp ) 102 102 { 103 irq_dmsg("\n[ INFO] %s : core = [%x,%d] / source_chdev_xp = %l\n",104 __FUNCTION__ , local_cxy , lid , src_chdev_xp);103 irq_dmsg("\n[DMSG] %s : core = [%x,%d] / src_chdev_cxy = %x / src_chdev_ptr = %x\n", 104 __FUNCTION__ , local_cxy , lid , GET_CXY(src_chdev_xp) , GET_PTR(src_chdev_xp) ); 105 105 106 106 // get pointer on PIC chdev … … 118 118 void dev_pic_enable_timer( uint32_t period ) 119 119 { 120 irq_dmsg("\n[ INFO] %s : core = [%x,%d] / period = %d\n",121 120 irq_dmsg("\n[DMSG] %s : core = [%x,%d] / period = %d\n", 121 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period ); 122 122 123 123 // get pointer on PIC chdev … … 135 135 void dev_pic_enable_ipi() 136 136 { 137 irq_dmsg("\n[ INFO] %s : core = [%x,?]\n",138 __FUNCTION__ , local_cxy);137 irq_dmsg("\n[DMSG] %s : core = [%x,%d]\n", 138 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid ); 139 139 140 140 // get pointer on PIC chdev … … 153 153 lid_t lid ) 154 154 { 155 irq_dmsg("\n[ INFO] %s : enter / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n",156 155 irq_dmsg("\n[DMSG] %s : enter / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n", 156 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() ); 157 157 158 158 // get pointer on PIC chdev … … 166 166 f( cxy , lid ); 167 167 168 irq_dmsg("\n[ INFO] %s : exit / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n",169 168 irq_dmsg("\n[DMSG] %s : exit / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n", 169 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() ); 170 170 } 171 171 -
trunk/kernel/devices/dev_pic.h
r279 r406 212 212 /***************************************************************************************** 213 213 * This function activates the TIM_IRQ for the calling core. 214 * The <period> argument define the number of cycles between twoo successive IRQs. 215 ***************************************************************************************** 216 * @ period : number of cycles between IRQs. 214 * The <period> argument is a number of milli-seconds between two successive IRQs. 215 * It is converted to a number of cycles by the PIC driver implementation. 216 ***************************************************************************************** 217 * @ period : number of milliseconds. 217 218 ****************************************************************************************/ 218 219 void dev_pic_enable_timer( uint32_t period ); -
trunk/kernel/devices/dev_txt.c
r296 r406 101 101 thread_t * this = CURRENT_THREAD; 102 102 103 txt_dmsg("\n[ INFO] in %s : thread %x in process %x enters\n",103 txt_dmsg("\n[DMSG] in %s : thread %x in process %x enters\n", 104 104 __FUNCTION__ , this->trdid , this->process->pid ); 105 105 … … 123 123 chdev_register_command( dev_xp , this ); 124 124 125 txt_dmsg("\n[ INFO] in %s : thread %x in process %x completes / error = %d\n",125 txt_dmsg("\n[DMSG] in %s : thread %x in process %x completes / error = %d\n", 126 126 __FUNCTION__ , this->trdid , this->process->pid , this->txt_cmd.error ); 127 127
Note: See TracChangeset
for help on using the changeset viewer.