Changeset 633 for trunk/kernel/syscalls
- Timestamp:
- May 28, 2019, 6:10:15 PM (5 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 3 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 -
trunk/kernel/syscalls/sys_thread_create.c
r626 r633 47 47 void * start_args ) 48 48 { 49 pthread_attr_t kern_attr; // copy of pthread attributes in kernel space 50 thread_t * parent; // pointer on thread executing the pthread_create 51 xptr_t parent_xp; // extended pointer on calling thread 49 pthread_attr_t kern_attr; // copy of pthread attributes in kernel space 50 thread_t * parent; // pointer on thread executing the pthread_create 52 51 cxy_t child_cxy; // created child thread cluster identifier 53 thread_t * child_ptr; // pointer on created child thread 54 xptr_t child_xp; // extended pointer on created thread 55 trdid_t trdid; // created thread identifier 56 process_t * process; // pointer on local process descriptor 57 vseg_t * vseg; // required for user space checking 58 error_t error; 59 60 // get parent thead pointer, extended pointer, and process 61 parent = CURRENT_THREAD; 62 parent_xp = XPTR( local_cxy , parent ); 63 process = parent->process; 52 thread_t * child_ptr; // pointer on created child thread 53 xptr_t child_xp; // extended pointer on created thread 54 trdid_t trdid; // created thread identifier 55 process_t * process; // pointer on local process descriptor 56 vseg_t * vseg; // required for user space checking 57 error_t error; 58 59 // get parent thead pointer, extended pointer, and process 60 parent = CURRENT_THREAD; 61 process = parent->process; 64 62 65 63 #if (DEBUG_SYS_THREAD_CREATE || CONFIG_INSTRUMENTATION_SYSCALLS) -
trunk/kernel/syscalls/sys_thread_join.c
r584 r633 46 46 xptr_t target_join_lock_xp; 47 47 xptr_t target_flags_xp; 48 xptr_t target_blocked_xp;49 48 xptr_t target_join_xp_xp; 50 49 xptr_t killer_xp; … … 126 125 target_join_lock_xp = XPTR( target_cxy , &target_ptr->join_lock ); 127 126 target_flags_xp = XPTR( target_cxy , &target_ptr->flags ); 128 target_blocked_xp = XPTR( target_cxy , &target_ptr->blocked );129 127 target_join_xp_xp = XPTR( target_cxy , &target_ptr->join_xp ); 130 128
Note: See TracChangeset
for help on using the changeset viewer.