Changeset 408 for trunk/kernel/syscalls/sys_read.c
- Timestamp:
- Dec 5, 2017, 4:20:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_read.c
r407 r408 61 61 xptr_t file_xp; // remote file extended pointer 62 62 uint32_t nbytes; // number of bytes actually read 63 63 reg_t save_sr; // required to enable IRQs during syscall 64 64 uint32_t tm_start; 65 65 uint32_t tm_end; … … 93 93 return -1; 94 94 } 95 96 // enable IRQs 97 hal_enable_irq( &save_sr ); 95 98 96 99 // get extended pointer on remote file descriptor … … 150 153 return -1; 151 154 } 155 156 // restore IRQs 157 hal_restore_irq( save_sr ); 152 158 153 159 hal_fence(); … … 190 196 #endif 191 197 192 syscall_dmsg("\n[DBG] %s : core[%x,%d] / thread %x / nbytes = %d/ cycle %d\n"193 " first byte = %c / file_id = %d / cost = %d\n",194 __FUNCTION__ , local_cxy , this->core->lid , this->trdid , nbytes , tm_start,195 *((char *)(intptr_t)paddr) , file_id , tm_end - tm_start );198 syscall_dmsg("\n[DBG] %s : core[%x,%d] / thread %x in process %x / cycle %d\n" 199 "nbytes = %d / first byte = %c / file_id = %d / cost = %d\n", 200 __FUNCTION__ , local_cxy , this->core->lid , this->trdid , this->process->pid , 201 tm_start , nbytes , *((char *)(intptr_t)paddr) , file_id , tm_end - tm_start ); 196 202 197 203 return nbytes;
Note: See TracChangeset
for help on using the changeset viewer.