Changeset 438 for trunk/kernel/syscalls/sys_thread_exit.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_exit.c
r436 r438 39 39 { 40 40 41 #if CONFIG_DEBUG_SYSCALLS_ERROR41 #if DEBUG_SYSCALLS_ERROR 42 42 printk("\n[ERROR] in %s : exit_value argument must be NULL for thread %x in process %x\n", 43 43 __FUNCTION__ , exit_value, this->trdid , process->pid ); … … 47 47 } 48 48 49 #if CONFIG_DEBUG_SYS_THREAD_EXIT49 #if DEBUG_SYS_THREAD_EXIT 50 50 uint64_t tm_start; 51 51 uint64_t tm_end; 52 52 tm_start = hal_get_cycles(); 53 if( CONFIG_DEBUG_SYS_THREAD_EXIT < tm_start )53 if( DEBUG_SYS_THREAD_EXIT < tm_start ) 54 54 printk("\n[DBG] %s : thread %x enter / process %x / cycle %d\n", 55 55 __FUNCTION__ , this, process->pid , (uint32_t)tm_start ); … … 61 61 0 ); // is forced 62 62 63 #if CONFIG_DEBUG_SYS_THREAD_EXIT63 #if DEBUG_SYS_THREAD_EXIT 64 64 tm_end = hal_get_cycles(); 65 if( CONFIG_DEBUG_SYS_THREAD_EXIT < tm_end )65 if( DEBUG_SYS_THREAD_EXIT < tm_end ) 66 66 printk("\n[DBG] %s : thread %x exit / process %x / cost %d / cycle %d\n", 67 67 __FUNCTION__, this, this->process->pid, (uint32_t)(tm_end - tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.