Changeset 566 for trunk/kernel/syscalls/sys_kill.c
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_kill.c
r506 r566 47 47 cxy_t parent_cxy; // parent process cluster 48 48 process_t * parent_ptr; // local pointer on parent process 49 xptr_t children_lock_xp; // extended pointer on children lock in parent50 49 thread_t * parent_main_ptr; // local pointer on parent main thread 51 50 xptr_t parent_main_xp; // extended pointer on parent main thread … … 108 107 109 108 // get parent process descriptor pointers 110 parent_xp = (xptr_t)hal_remote_l wd( XPTR( owner_cxy , &owner_ptr->parent_xp ) );109 parent_xp = (xptr_t)hal_remote_l64( XPTR( owner_cxy , &owner_ptr->parent_xp ) ); 111 110 parent_cxy = GET_CXY( parent_xp ); 112 111 parent_ptr = GET_PTR( parent_xp ); … … 118 117 #endif 119 118 120 // get extended pointer on lock protecting children list in parent process121 children_lock_xp = XPTR( parent_cxy , &parent_ptr->children_lock );122 123 119 // get pointers on the parent process main thread 124 120 parent_main_ptr = hal_remote_lpt( XPTR( parent_cxy , &parent_ptr->th_tbl[0] ) ); … … 149 145 PROCESS_TERM_STOP ); 150 146 151 // take the children lock and unblock the parent process main thread 152 remote_spinlock_lock( children_lock_xp ); 147 // unblock the parent process main thread 153 148 thread_unblock( parent_main_xp , THREAD_BLOCKED_WAIT ); 154 remote_spinlock_unlock( children_lock_xp );155 149 156 150 retval = 0; … … 188 182 PROCESS_TERM_KILL ); 189 183 190 // take the children lock and unblock the parent process main thread 191 remote_spinlock_lock( children_lock_xp ); 184 // unblock the parent process main thread 192 185 thread_unblock( parent_main_xp , THREAD_BLOCKED_WAIT ); 193 remote_spinlock_unlock( children_lock_xp );194 186 195 187 retval = 0;
Note: See TracChangeset
for help on using the changeset viewer.