Changeset 666 for trunk/kernel/libk/remote_busylock.c
- Timestamp:
- Oct 10, 2020, 5:27:12 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_busylock.c
r624 r666 2 2 * remote_busylock.c - remote kernel busy-waiting lock implementation. 3 3 * 4 * Authors Alain Greiner (2016,2017,2018,2019 )4 * Authors Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 50 50 hal_remote_s32( XPTR( lock_cxy , &lock_ptr->type ) , type ); 51 51 52 #if DEBUG_BUSYLOCK 52 #if DEBUG_BUSYLOCK_TYPE 53 53 xlist_entry_init( XPTR( lock_cxy , &lock_ptr->xlist ) ); 54 54 #endif … … 85 85 hal_fence(); 86 86 87 #if DEBUG_BUSYLOCK 87 #if DEBUG_BUSYLOCK_TYPE 88 88 uint32_t type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->type ) ); 89 89 if( type != LOCK_CHDEV_TXT0 ) … … 93 93 xlist_add_last( root_xp , XPTR( lock_cxy , &lock_ptr->xlist ) ); 94 94 } 95 #endif 96 97 #if( DEBUG_BUSYLOCK & 1 ) 98 if( (type != LOCK_CHDEV_TXT0) && 95 if( (type == DEBUG_BUSYLOCK_TYPE) && 99 96 (this->process->pid == DEBUG_BUSYLOCK_PID) && 100 (this->trdid == DEBUG_BUSYLOCK_TRDID) )97 (this->trdid == DEBUG_BUSYLOCK_TRDID) ) 101 98 { 102 99 printk("\n[%s] thread[%x,%x] ACQUIRE lock %s\n", … … 128 125 hal_fence(); 129 126 130 #if DEBUG_BUSYLOCK 127 #if DEBUG_BUSYLOCK_TYPE 131 128 uint32_t type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->type ) ); 132 129 if( type != LOCK_CHDEV_TXT0 ) … … 135 132 xlist_unlink( XPTR( lock_cxy , &lock_ptr->xlist ) ); 136 133 } 137 #endif 138 139 #if( DEBUG_BUSYLOCK & 1 ) 140 if( (type != LOCK_CHDEV_TXT0) && 134 if( (type == DEBUG_BUSYLOCK_TYPE) && 141 135 (this->process->pid == DEBUG_BUSYLOCK_PID) && 142 (this->trdid == DEBUG_BUSYLOCK_TRDID) )136 (this->trdid == DEBUG_BUSYLOCK_TRDID) ) 143 137 { 144 138 printk("\n[%s] thread[%x,%x] RELEASE lock %s\n",
Note: See TracChangeset
for help on using the changeset viewer.