Changeset 469 for trunk/kernel/syscalls/sys_write.c
- Timestamp:
- Aug 20, 2018, 1:04:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_write.c
r459 r469 61 61 reg_t save_sr; // required to enable IRQs during syscall 62 62 63 #if (DEBUG_SYS_WRITE & 1)64 enter_sys_write = (uint32_t)tm_start;65 #endif66 67 63 thread_t * this = CURRENT_THREAD; 68 64 process_t * process = this->process; … … 77 73 #endif 78 74 75 #if (DEBUG_SYS_WRITE & 1) 76 enter_sys_write = (uint32_t)tm_start; 77 #endif 78 79 79 // check file_id argument 80 80 if( file_id >= CONFIG_PROCESS_FILE_MAX_NR ) … … 195 195 tm_end = hal_get_cycles(); 196 196 if( DEBUG_SYS_WRITE < tm_end ) 197 printk("\n[DBG] %s : thread %x in process %x exit / cycle %d\n" 198 "nbytes %d / file_id %d / cost %d\n", 199 __FUNCTION__, this->trdid, process->pid, (uint32_t)tm_start, 200 nbytes, file_id , (uint32_t)(tm_end - tm_start) ); 197 printk("\n[DBG] %s : thread %x in process %x exit / cycle %d / cost %d\n", 198 __FUNCTION__, this->trdid, process->pid, (uint32_t)tm_start, (uint32_t)(tm_end - tm_start) ); 201 199 #endif 202 200
Note: See TracChangeset
for help on using the changeset viewer.