Changeset 433 for trunk/kernel/devices
- Timestamp:
- Feb 14, 2018, 3:40:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_txt.c
r422 r433 117 117 thread_t * this = CURRENT_THREAD; 118 118 119 txt_dmsg("\n[DBG] %s : core[%x,%d] (thread %s) enters / cycle %d\n", 120 __FUNCTION__, local_cxy, this->core->lid, thread_type_str(this->type), hal_time_stamp() ); 119 #if CONFIG_DEBUG_DEV_TXT 120 uint32_t cycle = (uint32_t)hal_get_cycles(); 121 if( CONFIG_DEBUG_DEV_TXT < cycle ) 122 printk("\n[DBG] %s : thread %x enters / cycle %d\n", 123 __FUNCTION__, CURRENT_THREAD , cycle ); 124 #endif 121 125 122 126 // check channel argument … … 140 144 chdev_register_command( dev_xp ); 141 145 142 txt_dmsg("\n[DBG] %s : core[%x,%d] (thread %s) exit / cycle %d\n", 143 __FUNCTION__, local_cxy, this->core->lid, thread_type_str(this->type), hal_time_stamp() ); 146 #if CONFIG_DEBUG_DEV_TXT 147 cycle = (uint32_t)hal_get_cycles(); 148 if( CONFIG_DEBUG_DEV_TXT < cycle ) 149 printk("\n[DBG] %s : thread %x exit / cycle %d\n", 150 __FUNCTION__, CURRENT_THREAD , cycle ); 151 #endif 144 152 145 153 // return I/O operation status from calling thread descriptor
Note: See TracChangeset
for help on using the changeset viewer.