Ignore:
Timestamp:
Jan 29, 2018, 5:49:38 PM (7 years ago)
Author:
alain
Message:

cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/remote_spinlock.c

    r409 r423  
    3434void remote_spinlock_init( xptr_t lock_xp )
    3535{
    36         remote_spinlock_t * ptr = (remote_spinlock_t *)GET_PTR( lock_xp );
     36        remote_spinlock_t * ptr = GET_PTR( lock_xp );
    3737        cxy_t               cxy = GET_CXY( lock_xp );
    3838
    3939        hal_remote_sw ( XPTR( cxy , &ptr->taken ) , 0 );
    4040
    41 #if CONFIG_LOCKS_CONFIG
     41#if CONFIG_LOCKS_DEBUG
    4242        hal_remote_swd( XPTR( cxy , &ptr->owner ) , XPTR_NULL );
    4343        xlist_entry_init( XPTR( cxy , &ptr->list ) );
     
    5353
    5454        // get cluster and local pointer on remote_spinlock
    55         remote_spinlock_t * lock_ptr = (remote_spinlock_t *)GET_PTR( lock_xp );
     55        remote_spinlock_t * lock_ptr = GET_PTR( lock_xp );
    5656        cxy_t               lock_cxy = GET_CXY( lock_xp );
    5757
     
    7272                return 1;
    7373        }
    74         else                      // success : register lock in thread
     74        else                      // success : register lock in local thread
    7575        {
    7676                thread_ptr->remote_locks++;
     
    7878#if CONFIG_LOCKS_DEBUG
    7979                hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) ,
    80                                 XPTR( thread_cxy , thread_ptr) );
     80                                XPTR( local_cxy , thread_ptr) );
    8181                xlist_add_first( XPTR( local_cxy , &thread_ptr->xlocks_root ) ,
    8282                                 XPTR( lock_cxy , &lock_ptr->list ) );
     
    9797
    9898        // get cluster and local pointer on remote_spinlock
    99         remote_spinlock_t * lock_ptr = (remote_spinlock_t *)GET_PTR( lock_xp );
     99        remote_spinlock_t * lock_ptr = GET_PTR( lock_xp );
    100100        cxy_t               lock_cxy = GET_CXY( lock_xp );
    101101
     
    138138{
    139139        // get cluster and local pointer on remote_spinlock
    140         remote_spinlock_t * lock_ptr = (remote_spinlock_t *)GET_PTR( lock_xp );
     140        remote_spinlock_t * lock_ptr = GET_PTR( lock_xp );
    141141        cxy_t               lock_cxy = GET_CXY( lock_xp );
    142142
     
    167167
    168168        // get cluster and local pointer on remote_spinlock
    169         remote_spinlock_t * lock_ptr = (remote_spinlock_t *)GET_PTR( lock_xp );
     169        remote_spinlock_t * lock_ptr = GET_PTR( lock_xp );
    170170        cxy_t               lock_cxy = GET_CXY( lock_xp );
    171171
     
    212212{
    213213        // get cluster and local pointer on remote_spinlock
    214         remote_spinlock_t * lock_ptr = (remote_spinlock_t *)GET_PTR( lock_xp );
     214        remote_spinlock_t * lock_ptr = GET_PTR( lock_xp );
    215215        cxy_t               lock_cxy = GET_CXY( lock_xp );
    216216
Note: See TracChangeset for help on using the changeset viewer.