Ignore:
Timestamp:
Oct 5, 2018, 12:08:35 AM (6 years ago)
Author:
alain
Message:

Introduction of the soclib_mty driver for the TSAR-LETI architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_vmm.c

    r457 r570  
    6464    }
    6565
    66     // get lock protecting the VSL to found the "kentry" vseg
    67     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 );
    6868
    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
    7073    xptr_t         root_xp = XPTR( local_cxy , &vmm->vsegs_root );
    7174    xptr_t         iter_xp;
    7275    xptr_t         vseg_xp;
    7376    vseg_t       * vseg;
    74     bool_t         found = false;
     77    bool_t         found = false;
     78 
    7579    XLIST_FOREACH( root_xp , iter_xp )
    7680    {
     
    8791    }
    8892
    89     // release the lock protecting the VSL
    90     remote_rwlock_wr_unlock( XPTR( local_cxy , &vmm->vsegs_lock ) );
     93    // release the VSL lock
     94    remote_rwlock_wr_release( lock_xp );
    9195
    9296    if( found == false ) return error;
Note: See TracChangeset for help on using the changeset viewer.