Changeset 409 for trunk/kernel/syscalls/sys_write.c
- Timestamp:
- Dec 20, 2017, 4:51:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_write.c
r408 r409 25 25 #include <hal_types.h> 26 26 #include <hal_uspace.h> 27 #include <hal_irqmask.h> 27 28 #include <hal_special.h> 28 29 #include <errno.h> … … 44 45 uint32_t nbytes; // number of bytes actually written 45 46 reg_t save_sr; // required to enable IRQs during syscall 46 uint32_t tm_start;47 uint32_t tm_end;48 47 49 tm_start = hal_get_cycles(); 48 #if CONFIG_SYSCALL_DEBUG 49 uint32_t tm_start; 50 uint32_t tm_end; 51 tm_start = hal_get_cycles(); 52 #endif 50 53 51 54 thread_t * this = CURRENT_THREAD; … … 136 139 hal_fence(); 137 140 138 tm_end = hal_get_cycles(); 139 141 #if CONFIG_SYSCALL_DEBUG 142 tm_end = hal_get_cycles(); 140 143 syscall_dmsg("\n[DBG] %s : core[%x,%d] / thread %x in process %x / cycle %d\n" 141 144 "nbytes = %d / first byte = %c / file_id = %d / cost = %d\n", 142 145 __FUNCTION__ , local_cxy , this->core->lid , this->trdid , this->process->pid , 143 146 tm_start , nbytes , *((char *)(intptr_t)paddr) , file_id , tm_end - tm_start ); 147 #endif 144 148 145 149 return nbytes;
Note: See TracChangeset
for help on using the changeset viewer.