Changeset 570 for trunk/hal/tsar_mips32/core/hal_vmm.c
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_vmm.c
r457 r570 64 64 } 65 65 66 // get lock protecting the VSL to found the "kentry" vseg67 remote_rwlock_wr_lock( XPTR( local_cxy , &vmm->vsegs_lock ));66 // get extended pointer on lock protecting the VSL 67 xptr_t lock_xp = XPTR( local_cxy , &vmm->vsegs_lock ); 68 68 69 // scan the VSL 69 // get VSL lock 70 remote_rwlock_wr_acquire( lock_xp ); 71 72 // scan the VSL to found the "kentry" vseg 70 73 xptr_t root_xp = XPTR( local_cxy , &vmm->vsegs_root ); 71 74 xptr_t iter_xp; 72 75 xptr_t vseg_xp; 73 76 vseg_t * vseg; 74 bool_t found = false; 77 bool_t found = false; 78 75 79 XLIST_FOREACH( root_xp , iter_xp ) 76 80 { … … 87 91 } 88 92 89 // release the lock protecting the VSL90 remote_rwlock_wr_ unlock( XPTR( local_cxy , &vmm->vsegs_lock ));93 // release the VSL lock 94 remote_rwlock_wr_release( lock_xp ); 91 95 92 96 if( found == false ) return error;
Note: See TracChangeset
for help on using the changeset viewer.