Changeset 633 for trunk/kernel/syscalls/sys_read.c
- Timestamp:
- May 28, 2019, 6:10:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_read.c
r625 r633 59 59 error_t error; 60 60 vseg_t * vseg; // required for user space checking 61 61 xptr_t file_xp; // remote file extended pointer 62 62 vfs_file_t * file_ptr; // remote file local pointer 63 63 cxy_t file_cxy; // remote file cluster identifier 64 64 uint32_t file_type; // file type 65 uint32_t file_offset; // current file offset66 65 uint32_t file_attr; // file_attribute 67 vfs_inode_t * inode_ptr; // local pointer on associated inode68 66 uint32_t nbytes; // number of bytes actually read 69 67 reg_t save_sr; // required to enable IRQs during syscall … … 132 130 file_cxy = GET_CXY( file_xp ); 133 131 134 // get file type , offset, attributes and associated inode132 // get file type and attributes 135 133 file_type = hal_remote_l32( XPTR( file_cxy , &file_ptr->type ) ); 136 file_offset = hal_remote_l32( XPTR( file_cxy , &file_ptr->offset ) );137 inode_ptr = hal_remote_lpt( XPTR( file_cxy , &file_ptr->inode ) );138 134 file_attr = hal_remote_l32( XPTR( file_cxy , &file_ptr->attr ) ); 139 135
Note: See TracChangeset
for help on using the changeset viewer.