Changeset 473 for trunk/kernel/mm
- Timestamp:
- Aug 21, 2018, 6:01:01 PM (6 years ago)
- Location:
- trunk/kernel/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r469 r473 718 718 719 719 // remove vseg from VSL 720 vseg_detach( v mm , vseg );720 vseg_detach( vseg ); 721 721 722 722 // release memory allocated to vseg descriptor … … 747 747 __FUNCTION__ , vseg_type_str( vseg->type ), vseg->vpn_base, vseg->vpn_size ); 748 748 #endif 749 vseg_detach( v mm , vseg );749 vseg_detach( vseg ); 750 750 vseg_free( vseg ); 751 751 … … 1022 1022 // get pointers on calling process and VMM 1023 1023 thread_t * this = CURRENT_THREAD; 1024 process_t * process = this->process;1025 1024 vmm_t * vmm = &this->process->vmm; 1026 1025 uint32_t type = vseg->type; … … 1029 1028 xptr_t lock_xp = XPTR( local_cxy , &vmm->vsegs_lock ); 1030 1029 remote_rwlock_wr_lock( lock_xp ); 1031 vseg_detach( &process->vmm ,vseg );1030 vseg_detach( vseg ); 1032 1031 remote_rwlock_wr_unlock( lock_xp ); 1033 1032 -
trunk/kernel/mm/vseg.c
r457 r473 209 209 } 210 210 211 /////////////////////////////// 212 void vseg_detach( vmm_t * vmm, 213 vseg_t * vseg ) 211 ///////////////////////////////// 212 void vseg_detach( vseg_t * vseg ) 214 213 { 215 214 // update vseg descriptor -
trunk/kernel/mm/vseg.h
r457 r473 161 161 * The lock protecting the vsegs list in VMM must be taken by the caller. 162 162 ******************************************************************************************* 163 * @ vmm : pointer on the VMM164 163 * @ vseg : pointer on the vseg descriptor 165 164 ******************************************************************************************/ 166 void vseg_detach( struct vmm_s * vmm, 167 vseg_t * vseg ); 165 void vseg_detach( vseg_t * vseg ); 168 166 169 167
Note: See TracChangeset
for help on using the changeset viewer.