Changeset 610 for trunk/kernel/libk/remote_queuelock.c
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_queuelock.c
r603 r610 54 54 remote_busylock_init( XPTR( lock_cxy , &lock_ptr->lock ) , type ); 55 55 56 #if DEBUG_QUEUELOCK 56 #if DEBUG_QUEUELOCK_TYPE 57 57 thread_t * this = CURRENT_THREAD; 58 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles())58 if( DEBUG_QUEUELOCK_TYPE == type ) 59 59 printk("\n[%s] thread[%x,%x] initialise lock %s [%x,%x]\n", 60 60 __FUNCTION__, this->process->pid, this->trdid, … … 76 76 remote_queuelock_t * lock_ptr = GET_PTR( lock_xp ); 77 77 78 #if DEBUG_QUEUELOCK 78 #if DEBUG_QUEUELOCK_TYPE 79 79 uint32_t lock_type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->lock.type ) ); 80 80 #endif … … 90 90 { 91 91 92 #if DEBUG_QUEUELOCK 93 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles())92 #if DEBUG_QUEUELOCK_TYPE 93 if( DEBUG_QUEUELOCK_TYPE == lock_type ) 94 94 printk("\n[%s] thread[%x,%x] BLOCK on q_lock %s [%x,%x]\n", 95 95 __FUNCTION__, this->process->pid, this->trdid, … … 116 116 } 117 117 118 #if DEBUG_QUEUELOCK 119 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles())118 #if DEBUG_QUEUELOCK_TYPE 119 if( DEBUG_QUEUELOCK_TYPE == lock_type ) 120 120 printk("\n[%s] thread[%x,%x] ACQUIRE q_lock %s [%x,%x]\n", 121 121 __FUNCTION__, this->process->pid, this->trdid, … … 128 128 // release busylock 129 129 remote_busylock_release( busylock_xp ); 130 131 hal_fence(); 130 132 131 133 } // end remote_queuelock_acquire() … … 147 149 remote_busylock_acquire( busylock_xp ); 148 150 149 #if DEBUG_QUEUELOCK 151 #if DEBUG_QUEUELOCK_TYPE 150 152 thread_t * this = CURRENT_THREAD; 151 153 uint32_t lock_type = hal_remote_l32( XPTR( lock_cxy , &lock_ptr->lock.type ) ); 152 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles())154 if( DEBUG_QUEUELOCK_TYPE == lock_type ) 153 155 printk("\n[%s] thread[%x,%x] RELEASE q_lock %s (%x,%x)\n", 154 156 __FUNCTION__, this->process->pid, this->trdid, … … 168 170 thread_t * thread_ptr = GET_PTR( thread_xp ); 169 171 170 #if DEBUG_QUEUELOCK 171 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles())172 #if DEBUG_QUEUELOCK_TYPE 173 if( DEBUG_QUEUELOCK_TYPE == lock_type ) 172 174 { 173 175 trdid_t trdid = hal_remote_l32( XPTR( thread_cxy , &thread_ptr->trdid ) );
Note: See TracChangeset
for help on using the changeset viewer.