Ignore:
Timestamp:
Oct 10, 2020, 5:27:12 PM (4 years ago)
Author:
alain
Message:

Cosmetic.

File:
1 edited

Legend:

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

    r624 r666  
    22 * remote_busylock.c - remote kernel busy-waiting lock implementation.
    33 *
    4  * Authors     Alain Greiner (2016,2017,2018,2019)
     4 * Authors     Alain Greiner (2016,2017,2018,2019,2020)
    55 *
    66 * Copyright (c) UPMC Sorbonne Universites
     
    5050    hal_remote_s32( XPTR( lock_cxy , &lock_ptr->type    ) , type );
    5151
    52 #if DEBUG_BUSYLOCK
     52#if DEBUG_BUSYLOCK_TYPE
    5353    xlist_entry_init( XPTR( lock_cxy , &lock_ptr->xlist ) );
    5454#endif
     
    8585    hal_fence();
    8686   
    87 #if DEBUG_BUSYLOCK
     87#if DEBUG_BUSYLOCK_TYPE
    8888uint32_t type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->type ) );
    8989if( type != LOCK_CHDEV_TXT0 )
     
    9393    xlist_add_last( root_xp , XPTR( lock_cxy  , &lock_ptr->xlist ) );
    9494}
    95 #endif
    96 
    97 #if( DEBUG_BUSYLOCK & 1 )
    98 if( (type != LOCK_CHDEV_TXT0) &&
     95if( (type               == DEBUG_BUSYLOCK_TYPE) &&
    9996    (this->process->pid == DEBUG_BUSYLOCK_PID) &&
    100     (this->trdid == DEBUG_BUSYLOCK_TRDID) )
     97    (this->trdid        == DEBUG_BUSYLOCK_TRDID) )
    10198{
    10299    printk("\n[%s] thread[%x,%x] ACQUIRE lock %s\n",
     
    128125    hal_fence();
    129126
    130 #if DEBUG_BUSYLOCK
     127#if DEBUG_BUSYLOCK_TYPE
    131128uint32_t type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->type ) );
    132129if( type != LOCK_CHDEV_TXT0 )
     
    135132    xlist_unlink( XPTR( lock_cxy  , &lock_ptr->xlist ) );
    136133}
    137 #endif
    138 
    139 #if( DEBUG_BUSYLOCK & 1 )
    140 if( (type != LOCK_CHDEV_TXT0) &&
     134if( (type               == DEBUG_BUSYLOCK_TYPE) &&
    141135    (this->process->pid == DEBUG_BUSYLOCK_PID) &&
    142     (this->trdid == DEBUG_BUSYLOCK_TRDID) )
     136    (this->trdid        == DEBUG_BUSYLOCK_TRDID) )
    143137{
    144138    printk("\n[%s] thread[%x,%x] RELEASE lock %s\n",
Note: See TracChangeset for help on using the changeset viewer.