Changeset 629 for trunk/kernel/libk/remote_queuelock.c
- Timestamp:
- May 17, 2019, 9:27:04 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_queuelock.c
r623 r629 2 2 * remote_queuelock.c - remote kernel lock with waiting queue implementation. 3 3 * 4 * Authors Alain Greiner (2016,2017,2018 )4 * Authors Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 56 56 #if DEBUG_QUEUELOCK_TYPE 57 57 thread_t * this = CURRENT_THREAD; 58 if( DEBUG_QUEUELOCK_TYPE == type ) 58 if( (type == DEBUG_QUEUELOCK_TYPE) && 59 (lock_ptr == DEBUG_QUEUELOCK_PTR ) && 60 (lock_cxy == DEBUG_QUEUELOCK_CXY ) ) 59 61 printk("\n[%s] thread[%x,%x] initialise lock %s [%x,%x]\n", 60 62 __FUNCTION__, this->process->pid, this->trdid, … … 91 93 92 94 #if DEBUG_QUEUELOCK_TYPE 93 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 95 if( (lock_type == DEBUG_QUEUELOCK_TYPE) && 96 (lock_ptr == DEBUG_QUEUELOCK_PTR ) && 97 (lock_cxy == DEBUG_QUEUELOCK_CXY ) ) 94 98 printk("\n[%s] thread[%x,%x] BLOCK on q_lock %s [%x,%x]\n", 95 99 __FUNCTION__, this->process->pid, this->trdid, … … 117 121 118 122 #if DEBUG_QUEUELOCK_TYPE 119 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 123 if( (lock_type == DEBUG_QUEUELOCK_TYPE) && 124 (lock_ptr == DEBUG_QUEUELOCK_PTR ) && 125 (lock_cxy == DEBUG_QUEUELOCK_CXY ) ) 120 126 printk("\n[%s] thread[%x,%x] ACQUIRE q_lock %s [%x,%x]\n", 121 127 __FUNCTION__, this->process->pid, this->trdid, … … 152 158 thread_t * this = CURRENT_THREAD; 153 159 uint32_t lock_type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->lock.type ) ); 154 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 160 if( (lock_type == DEBUG_QUEUELOCK_TYPE) && 161 (lock_ptr == DEBUG_QUEUELOCK_PTR ) && 162 (lock_cxy == DEBUG_QUEUELOCK_CXY ) ) 155 163 printk("\n[%s] thread[%x,%x] RELEASE q_lock %s (%x,%x)\n", 156 164 __FUNCTION__, this->process->pid, this->trdid, … … 171 179 172 180 #if DEBUG_QUEUELOCK_TYPE 173 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 181 if( (lock_type == DEBUG_QUEUELOCK_TYPE) && 182 (lock_ptr == DEBUG_QUEUELOCK_PTR ) && 183 (lock_cxy == DEBUG_QUEUELOCK_CXY ) ) 174 184 { 175 185 trdid_t trdid = hal_remote_l32( XPTR( thread_cxy , &thread_ptr->trdid ) );
Note: See TracChangeset
for help on using the changeset viewer.