Changeset 619 for trunk/hal/tsar_mips32/drivers
- Timestamp:
- Feb 12, 2019, 1:15:47 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_tty.c
r570 r619 131 131 #endif 132 132 133 #if( DEBUG_HAL_TXT_TX || DEBUG_HAL_TXT_RX ) 134 thread_t * this = CURRENT_THREAD; 135 #endif 136 133 137 // get TXT device cluster and pointers 134 138 xptr_t dev_xp = (xptr_t)hal_remote_l64( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) ); … … 160 164 161 165 #if DEBUG_HAL_TXT_TX 162 uint32_t tx_cycle = (uint32_t)hal_get_cycles();166 uint32_t tx_cycle = (uint32_t)hal_get_cycles(); 163 167 if( DEBUG_HAL_TXT_TX < tx_cycle ) 164 printk("\n[ DBG] %s : thread %xput character <%c> to TXT%d_TX fifo / cycle %d\n",165 __FUNCTION__, CURRENT_THREAD, byte, channel, tx_cycle );168 printk("\n[%s] thread[%x,%x] put character <%c> to TXT%d_TX fifo / cycle %d\n", 169 __FUNCTION__, this->process->pid, this->trdid, byte, channel, tx_cycle ); 166 170 #endif 167 171 // write byte to FIFO … … 195 199 } 196 200 /////////////////////////// 197 else if( type == TXT_READ ) // read bytes from TTY_RX FIFO201 else if( type == TXT_READ ) // read several bytes from TTY_RX FIFO 198 202 { 199 203 fifo = &tty_rx_fifo[channel]; … … 211 215 uint32_t rx_cycle = (uint32_t)hal_get_cycles(); 212 216 if( DEBUG_HAL_TXT_RX < rx_cycle ) 213 printk("\n[ DBG] %s : thread %xget character <%c> from TXT%d_RX fifo / cycle %d\n",214 __FUNCTION__, CURRENT_THREAD, byte, channel, rx_cycle );217 printk("\n[%s] thread[%x,%x] get character <%c> from TXT%d_RX fifo / cycle %d\n", 218 __FUNCTION__, this->process->pid, this->trdid, byte, channel, rx_cycle ); 215 219 #endif 216 220 // update FIFO state … … 328 332 #if DEBUG_HAL_TXT_RX 329 333 if( DEBUG_HAL_TXT_RX < rx_cycle ) 330 printk("\n[ DBG] %s :read ^Z character from TXT%d\n", __FUNCTION__, channel );334 printk("\n[%s] read ^Z character from TXT%d\n", __FUNCTION__, channel ); 331 335 #endif 332 336 // get pointers on TXT owner process in owner cluster … … 381 385 #if DEBUG_HAL_TXT_RX 382 386 if( DEBUG_HAL_TXT_RX < rx_cycle ) 383 printk("\n[ DBG] %s :read ^C character from TXT%d\n", __FUNCTION__, channel );387 printk("\n[%s] read ^C character from TXT%d\n", __FUNCTION__, channel ); 384 388 #endif 385 389 // get pointer on TXT owner process in owner cluster … … 434 438 #if DEBUG_HAL_TXT_RX 435 439 if( DEBUG_HAL_TXT_RX < rx_cycle ) 436 printk("\n[ DBG] %s :put character <%c> to TXT%d_RX fifo\n",440 printk("\n[%s] put character <%c> to TXT%d_RX fifo\n", 437 441 __FUNCTION__, byte, channel ); 438 442 #endif … … 481 485 #if DEBUG_HAL_TXT_TX 482 486 if( DEBUG_HAL_TXT_TX < tx_cycle ) 483 printk("\n[ DBG] %s :get character <%c> from TXT%d_TX fifo\n",487 printk("\n[%s] get character <%c> from TXT%d_TX fifo\n", 484 488 __FUNCTION__, byte, channel ); 485 489 #endif
Note: See TracChangeset
for help on using the changeset viewer.