Changeset 436 for trunk/kernel/syscalls/sys_display.c
- Timestamp:
- Mar 7, 2018, 9:02:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_display.c
r435 r436 37 37 reg_t arg1 ) 38 38 { 39 // get thread, process and core40 thread_t * this = CURRENT_THREAD;41 process_t * process = this->process;42 core_t * core = this->core;43 39 44 40 #if CONFIG_DEBUG_SYS_DISPLAY 45 41 uint64_t tm_start; 46 42 uint64_t tm_end; 43 thread_t * this; 44 this = CURRENT_THREAD; 47 45 tm_start = hal_get_cycles(); 48 46 if( CONFIG_DEBUG_SYS_DISPLAY < tm_start ) 49 printk("\n[DBG] %s : thread %d enter / process %x / cycle = %d\n",50 __FUNCTION__, this, process->pid, (uint32_t)tm_start );47 printk("\n[DBG] %s : thread %d enter / process %x / type %d / cycle = %d\n", 48 __FUNCTION__, this, this->process->pid, type, (uint32_t)tm_start ); 51 49 #endif 52 50 … … 80 78 81 79 // print message on TXT0 kernel terminal 82 printk("\n[USER] thread %x / process %x / core[%x,%d] / cycle %d\n %s", 83 this->trdid , process->pid , local_cxy, core->lid , 84 (uint32_t)hal_get_cycles() , kbuf ); 80 printk("\n[USER] %s / cycle %d\n", kbuf, (uint32_t)hal_get_cycles() ); 85 81 } 86 82 else if( type == DISPLAY_VMM ) … … 191 187 if( CONFIG_DEBUG_SYS_DISPLAY < tm_end ) 192 188 printk("\n[DBG] %s : thread %x exit / process %x / cost = %d / cycle %d\n", 193 __FUNCTION__, this, process->pid, (uint32_t)(tm_end - tm_start) , (uint32_t)tm_end );189 __FUNCTION__, this, this->process->pid, (uint32_t)(tm_end - tm_start) , (uint32_t)tm_end ); 194 190 #endif 195 191
Note: See TracChangeset
for help on using the changeset viewer.