Changeset 438 for trunk/hal/tsar_mips32/drivers/soclib_tty.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_tty.c
r436 r438 30 30 #include <hal_special.h> 31 31 32 #if ( CONFIG_DEBUG_SYS_READ & 1)32 #if (DEBUG_SYS_READ & 1) 33 33 extern uint32_t enter_tty_cmd_read; 34 34 extern uint32_t exit_tty_cmd_read; … … 38 38 #endif 39 39 40 #if ( CONFIG_DEBUG_SYS_WRITE & 1)40 #if (DEBUG_SYS_WRITE & 1) 41 41 extern uint32_t enter_tty_cmd_write; 42 42 extern uint32_t exit_tty_cmd_write; … … 115 115 xptr_t error_xp = XPTR( th_cxy , &th_ptr->txt_cmd.error ); 116 116 117 #if ( CONFIG_DEBUG_SYS_READ & 1)117 #if (DEBUG_SYS_READ & 1) 118 118 if( type == TXT_READ) enter_tty_cmd_read = (uint32_t)hal_get_cycles(); 119 119 #endif 120 120 121 #if ( CONFIG_DEBUG_SYS_WRITE & 1)121 #if (DEBUG_SYS_WRITE & 1) 122 122 if( type == TXT_WRITE) enter_tty_cmd_write = (uint32_t)hal_get_cycles(); 123 123 #endif 124 124 125 #if CONFIG_DEBUG_HAL_TXT_RX125 #if DEBUG_HAL_TXT_RX 126 126 uint32_t cycle = (uint32_t)hal_get_cycles(); 127 if( ( CONFIG_DEBUG_HAL_TXT_RX < cycle) && (type == TXT_READ) )127 if( (DEBUG_HAL_TXT_RX < cycle) && (type == TXT_READ) ) 128 128 printk("\n[DBG] %s : thread %x enter for RX / cycle %d\n", 129 129 __FUNCTION__ , CURRENT_THREAD , cycle ); 130 130 #endif 131 131 132 #if CONFIG_DEBUG_HAL_TXT_TX132 #if DEBUG_HAL_TXT_TX 133 133 uint32_t cycle = (uint32_t)hal_get_cycles(); 134 if( ( CONFIG_DEBUG_HAL_TXT_TX < cycle) && (type == TXT_WRITE) )134 if( (DEBUG_HAL_TXT_TX < cycle) && (type == TXT_WRITE) ) 135 135 printk("\n[DBG] %s : thread %x enter for TX / cycle %d\n", 136 136 __FUNCTION__ , CURRENT_THREAD , cycle ); … … 238 238 } 239 239 240 #if CONFIG_DEBUG_HAL_TXT_RX240 #if DEBUG_HAL_TXT_RX 241 241 cycle = (uint32_t)hal_get_cycles(); 242 if( ( CONFIG_DEBUG_HAL_TXT_RX < cycle) && (type == TXT_READ) )242 if( (DEBUG_HAL_TXT_RX < cycle) && (type == TXT_READ) ) 243 243 printk("\n[DBG] %s : thread %x exit after RX / cycle %d\n", 244 244 __FUNCTION__ , CURRENT_THREAD , cycle ); 245 245 #endif 246 246 247 #if CONFIG_DEBUG_HAL_TXT_TX247 #if DEBUG_HAL_TXT_TX 248 248 cycle = (uint32_t)hal_get_cycles(); 249 if( ( CONFIG_DEBUG_HAL_TXT_TX < cycle) && (type == TXT_WRITE) )249 if( (DEBUG_HAL_TXT_TX < cycle) && (type == TXT_WRITE) ) 250 250 printk("\n[DBG] %s : thread %x exit after TX / cycle %d\n", 251 251 __FUNCTION__ , CURRENT_THREAD , cycle ); 252 252 #endif 253 253 254 #if ( CONFIG_DEBUG_SYS_READ & 1)254 #if (DEBUG_SYS_READ & 1) 255 255 if( type == TXT_READ ) exit_tty_cmd_read = (uint32_t)hal_get_cycles(); 256 256 #endif 257 257 258 #if ( CONFIG_DEBUG_SYS_WRITE & 1)258 #if (DEBUG_SYS_WRITE & 1) 259 259 if( type == TXT_WRITE ) exit_tty_cmd_write = (uint32_t)hal_get_cycles(); 260 260 #endif … … 288 288 server_lid = server->core->lid; 289 289 290 #if ( CONFIG_DEBUG_SYS_READ & 1)290 #if (DEBUG_SYS_READ & 1) 291 291 if( is_rx ) enter_tty_isr_read = (uint32_t)hal_get_cycles(); 292 292 #endif 293 293 294 #if ( CONFIG_DEBUG_SYS_WRITE & 1)294 #if (DEBUG_SYS_WRITE & 1) 295 295 if( is_rx == 0 ) enter_tty_isr_write = (uint32_t)hal_get_cycles(); 296 296 #endif 297 297 298 #if CONFIG_DEBUG_HAL_TXT_RX298 #if DEBUG_HAL_TXT_RX 299 299 uint32_t cycle = (uint32_t)hal_get_cycles(); 300 if( ( CONFIG_DEBUG_HAL_TXT_RX < cycle) && is_rx )300 if( (DEBUG_HAL_TXT_RX < cycle) && is_rx ) 301 301 printk("\n[DBG] %s : enter for RX / cycle %d\n", __FUNCTION__ , cycle ); 302 302 #endif 303 303 304 #if CONFIG_DEBUG_HAL_TXT_TX304 #if DEBUG_HAL_TXT_TX 305 305 uint32_t cycle = (uint32_t)hal_get_cycles(); 306 if( ( CONFIG_DEBUG_HAL_TXT_TX < cycle) && (is_rx == 0) )306 if( (DEBUG_HAL_TXT_TX < cycle) && (is_rx == 0) ) 307 307 printk("\n[DBG] %s : enter for TX / cycle %d\n", __FUNCTION__ , cycle ); 308 308 #endif … … 459 459 hal_fence(); 460 460 461 #if CONFIG_DEBUG_HAL_TXT_RX461 #if DEBUG_HAL_TXT_RX 462 462 cycle = (uint32_t)hal_get_cycles(); 463 if( ( CONFIG_DEBUG_HAL_TXT_RX < cycle) && is_rx )463 if( (DEBUG_HAL_TXT_RX < cycle) && is_rx ) 464 464 printk("\n[DBG] %s : exit after RX / cycle %d\n", __FUNCTION__, cycle ); 465 465 #endif 466 466 467 #if CONFIG_DEBUG_HAL_TXT_TX467 #if DEBUG_HAL_TXT_TX 468 468 cycle = (uint32_t)hal_get_cycles(); 469 if( ( CONFIG_DEBUG_HAL_TXT_TX < cycle) && (is_rx == 0) )469 if( (DEBUG_HAL_TXT_TX < cycle) && (is_rx == 0) ) 470 470 printk("\n[DBG] %s : exit after TX / cycle %d\n", __FUNCTION__, cycle ); 471 471 #endif 472 472 473 #if ( CONFIG_DEBUG_SYS_READ & 1)473 #if (DEBUG_SYS_READ & 1) 474 474 if( is_rx ) exit_tty_isr_read = (uint32_t)hal_get_cycles(); 475 475 #endif 476 476 477 #if ( CONFIG_DEBUG_SYS_WRITE & 1)477 #if (DEBUG_SYS_WRITE & 1) 478 478 if( is_rx == 0 ) exit_tty_isr_write = (uint32_t)hal_get_cycles(); 479 479 #endif
Note: See TracChangeset
for help on using the changeset viewer.