Changeset 438 for trunk/kernel/syscalls/sys_thread_wakeup.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_wakeup.c
r436 r438 34 34 process_t * process = this->process; 35 35 36 #if CONFIG_DEBUG_SYS_THREAD_WAKEUP36 #if DEBUG_SYS_THREAD_WAKEUP 37 37 uint64_t tm_start; 38 38 uint64_t tm_end; 39 39 tm_start = hal_get_cycles(); 40 if( CONFIG_DEBUG_SYS_THREAD_WAKEUP < tm_start )40 if( DEBUG_SYS_THREAD_WAKEUP < tm_start ) 41 41 printk("\n[DBG] %s : thread %x enter / activate thread %x in process %x / cycle %d\n", 42 42 __FUNCTION__ , this, trdid, this->process->pid, (uint32_t)tm_start ); … … 51 51 { 52 52 53 #if CONFIG_DEBUG_SISCALLS_ERROR53 #if DEBUG_SISCALLS_ERROR 54 54 printk("\n[ERROR] in %s : illegal trdid argument %x\n", __FUNCTION__, trdid ); 55 55 #endif … … 64 64 { 65 65 66 #if CONFIG_DEBUG_SISCALLS_ERROR66 #if DEBUG_SISCALLS_ERROR 67 67 printk("\n[ERROR] in %s : cannot find thread %x in process %x/n", 68 68 __FUNCTION__ , trdid , this->process->pid ); … … 75 75 thread_unblock( thread_xp , THREAD_BLOCKED_GLOBAL ); 76 76 77 #if CONFIG_DEBUG_SYS_THREAD_WAKEUP77 #if DEBUG_SYS_THREAD_WAKEUP 78 78 tm_end = hal_get_cycles(); 79 if( CONFIG_DEBUG_SYS_THREAD_WAKEUP < tm_end )79 if( DEBUG_SYS_THREAD_WAKEUP < tm_end ) 80 80 printk("\n[DBG] %s : thread %x exit / thread %x in process %x activated / cycle %d\n", 81 81 __FUNCTION__ , this, trdid, this->process->pid, (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.