Changeset 443 for trunk/kernel/syscalls/sys_fg.c
- Timestamp:
- May 16, 2018, 4:15:22 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fg.c
r438 r443 36 36 int sys_fg( pid_t pid ) 37 37 { 38 xptr_t process_xp; 38 xptr_t process_xp; // extended pointer on reference process descriptor 39 39 process_t * process_ptr; 40 40 cxy_t process_cxy; 41 xptr_t chdev_xp; 41 xptr_t file_xp; // extended pointer on STDIN file descriptor 42 xptr_t chdev_xp; // extended pointer on TXT0_RX chdev 42 43 chdev_t * chdev_ptr; 43 44 cxy_t chdev_cxy; … … 70 71 process_ptr = (process_t *)GET_PTR( process_xp ); 71 72 process_cxy = GET_CXY( process_xp ); 73 74 // get extended pointer on the reference process STDIN file descriptor 75 file_xp = hal_remote_lwd( XPTR( process_cxy , &process_ptr->fd_array.array[0] ) ); 72 76 73 77 // get extended pointer on TXT_RX chdev 74 chdev_xp = chdev_from_file( XPTR( process_cxy , &process_ptr->fd_array.array[0] ));78 chdev_xp = chdev_from_file( file_xp ); 75 79 76 80 // get chdev cluster and local pointer
Note: See TracChangeset
for help on using the changeset viewer.