Changeset 625 for trunk/kernel/syscalls/sys_write.c
- Timestamp:
- Apr 10, 2019, 10:09:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_write.c
r624 r625 2 2 * sys_write.c - Kernel function implementing the "write" system call. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 76 76 77 77 #if DEBUG_SYS_WRITE 78 tm_start = hal_get_cycles();79 78 if( DEBUG_SYS_WRITE < tm_start ) 80 printk("\n[%s] thread[%x,%x] enter / vaddr %x / count %d/ cycle %d\n",79 printk("\n[%s] thread[%x,%x] enter / vaddr %x / %d bytes / cycle %d\n", 81 80 __FUNCTION__, process->pid, this->trdid, vaddr, count, (uint32_t)tm_start ); 82 81 #endif … … 140 139 hal_enable_irq( &save_sr ); 141 140 142 // action depend on file type143 if( file_type == INODE_TYPE_FILE ) // write to file mapper141 // action depend on file type 142 if( file_type == INODE_TYPE_FILE ) // write to a file mapper 144 143 { 145 144 // check file writable … … 180 179 xptr_t inode_xp = XPTR( file_cxy , inode_ptr ); 181 180 vfs_inode_update_size( inode_xp , file_offset + count ); 182 183 181 } 184 182 else if( file_type == INODE_TYPE_DEV ) // write to TXT device
Note: See TracChangeset
for help on using the changeset viewer.