Changeset 418 for trunk/kernel/syscalls/sys_read.c
- Timestamp:
- Jan 8, 2018, 2:25:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_read.c
r416 r418 64 64 reg_t save_sr; // required to enable IRQs during syscall 65 65 66 #if CONFIG_ SYSCALL_DEBUG67 uint 32_t tm_start;68 uint 32_t tm_end;66 #if CONFIG_READ_DEBUG 67 uint64_t tm_start; 68 uint64_t tm_end; 69 69 tm_start = hal_get_cycles(); 70 70 #endif 71 71 72 72 #if CONFIG_READ_DEBUG 73 enter_sys_read = tm_start;73 enter_sys_read = (uint32_t)tm_start; 74 74 #endif 75 75 … … 98 98 99 99 // enable IRQs 100 hal_enable_irq( &save_sr );100 // hal_enable_irq( &save_sr ); 101 101 102 102 // get extended pointer on remote file descriptor … … 158 158 159 159 // restore IRQs 160 hal_restore_irq( save_sr );160 // hal_restore_irq( save_sr ); 161 161 162 162 hal_fence(); 163 163 164 #if CONFIG_ SYSCALL_DEBUG164 #if CONFIG_READ_DEBUG 165 165 tm_end = hal_get_cycles(); 166 166 printk("\n[DBG] %s : core[%x,%d] / thread %x in process %x / cycle %d\n" … … 171 171 #endif 172 172 173 #if CONFIG_READ_DEBUG 174 exit_sys_read = tm_end;173 #if CONFIG_READ_DEBUG 174 exit_sys_read = (uint32_t)tm_end; 175 175 176 176 printk("\n@@@@@@@@@@@@ timing to read character %c\n"
Note: See TracChangeset
for help on using the changeset viewer.