Changeset 406 for trunk/kernel/mm/vseg.c


Ignore:
Timestamp:
Aug 29, 2017, 12:03:37 PM (4 years ago)
Author:
alain
Message:

This version executed successfully the user "init" process on a mono-processor TSAR architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/vseg.c

    r394 r406  
    188188
    189189///////////////////////////////
    190 error_t vseg_attach( vmm_t  * vmm,
    191                      vseg_t * vseg )
    192 {
    193     // add vseg in radix-tree
    194     error_t error = grdxt_insert( &vmm->grdxt , vseg->vpn_base , vseg );
    195     if ( error ) return ENOMEM;
    196 
     190void vseg_attach( vmm_t  * vmm,
     191                  vseg_t * vseg )
     192{
    197193    // update vseg descriptor
    198194    vseg->vmm = vmm;
     
    200196    // add vseg in vmm list
    201197    list_add_last( &vmm->vsegs_root , &vseg->list );
    202 
    203     return 0;
    204198}
    205199
     
    208202                  vseg_t * vseg )
    209203{
    210     // remove vseg from radix-tree
    211     grdxt_remove( &vmm->grdxt , vseg->vpn_base );
    212 
    213204    // update vseg descriptor
    214205    vseg->vmm = NULL;
Note: See TracChangeset for help on using the changeset viewer.