Changeset 60 for trunk/kernel/libk
- Timestamp:
- Jun 26, 2017, 4:55:47 PM (7 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_barrier.c
r23 r60 204 204 uint32_t count; 205 205 uint32_t sense; 206 uint32_tirq_state;206 reg_t irq_state; 207 207 xptr_t root_xp; 208 208 -
trunk/kernel/libk/remote_condvar.c
r23 r60 199 199 void remote_condvar_signal( xptr_t condvar_xp ) 200 200 { 201 uint32_tirq_state;201 reg_t irq_state; 202 202 203 203 // get condvar cluster an local pointer … … 232 232 void remote_condvar_broadcast( xptr_t condvar_xp ) 233 233 { 234 uint32_tirq_state;234 reg_t irq_state; 235 235 236 236 // get condvar cluster an local pointer -
trunk/kernel/libk/remote_fifo.c
r1 r60 58 58 uint32_t ptw; 59 59 uint32_t watchdog; 60 uint32_tsave_sr;60 reg_t save_sr; 61 61 uint32_t nslots; 62 62 -
trunk/kernel/libk/remote_mutex.c
r23 r60 168 168 { 169 169 bool_t success; 170 uint32_tirq_state;170 reg_t irq_state; 171 171 172 172 // get cluster and local pointer on remote mutex … … 221 221 void remote_mutex_unlock( xptr_t mutex_xp ) 222 222 { 223 uint32_tirq_state;223 reg_t irq_state; 224 224 225 225 // get cluster and local pointer on remote mutex -
trunk/kernel/libk/remote_rwlock.c
r50 r60 46 46 void remote_rwlock_rd_lock( xptr_t lock_xp ) 47 47 { 48 uint32_tmode;48 reg_t mode; 49 49 uint32_t ticket; 50 50 … … 95 95 void remote_rwlock_rd_unlock( xptr_t lock_xp ) 96 96 { 97 uint32_tmode;97 reg_t mode; 98 98 99 99 // get cluster and local pointer on remote_rwlock … … 124 124 void remote_rwlock_wr_lock( xptr_t lock_xp ) 125 125 { 126 uint32_tmode;126 reg_t mode; 127 127 uint32_t ticket; 128 128 … … 175 175 void remote_rwlock_wr_unlock( xptr_t lock_xp ) 176 176 { 177 uint32_tmode;177 reg_t mode; 178 178 179 179 // get cluster and local pointer on remote_rwlock -
trunk/kernel/libk/remote_spinlock.c
r11 r60 45 45 error_t remote_spinlock_trylock( xptr_t lock_xp ) 46 46 { 47 uint32_tmode;47 reg_t mode; 48 48 bool_t isAtomic = false; 49 49 … … 89 89 { 90 90 bool_t isAtomic = false; 91 uint32_tmode;91 reg_t mode; 92 92 volatile uint32_t taken; 93 93 … … 155 155 { 156 156 bool_t isAtomic = false; 157 uint32_tmode;157 reg_t mode; 158 158 volatile uint32_t taken; 159 159 -
trunk/kernel/libk/rwlock.c
r23 r60 43 43 void rwlock_rd_lock( rwlock_t * lock ) 44 44 { 45 uint32_tmode;45 reg_t mode; 46 46 uint32_t ticket; 47 47 thread_t * this = CURRENT_THREAD; … … 79 79 void rwlock_rd_unlock( rwlock_t * lock ) 80 80 { 81 uint32_tmode;81 reg_t mode; 82 82 thread_t * this = CURRENT_THREAD; 83 83 … … 96 96 void rwlock_wr_lock( rwlock_t * lock ) 97 97 { 98 uint32_tmode;98 reg_t mode; 99 99 uint32_t ticket; 100 100 thread_t * this = CURRENT_THREAD; … … 131 131 void rwlock_wr_unlock( rwlock_t * lock ) 132 132 { 133 uint32_tmode;133 reg_t mode; 134 134 thread_t * this = CURRENT_THREAD; 135 135 -
trunk/kernel/libk/spinlock.c
r14 r60 45 45 uint32_t * irq_state ) 46 46 { 47 uint32_tmode;47 reg_t mode; 48 48 volatile uint32_t taken; 49 49 thread_t * this = CURRENT_THREAD; … … 90 90 void spinlock_lock( spinlock_t * lock ) 91 91 { 92 uint32_tmode;92 reg_t mode; 93 93 thread_t * this = CURRENT_THREAD; 94 94 bool_t isAtomic = false; … … 127 127 error_t spinlock_trylock( spinlock_t * lock ) 128 128 { 129 uint32_tmode;129 reg_t mode; 130 130 bool_t isAtomic = false; 131 131 thread_t * this = CURRENT_THREAD;
Note: See TracChangeset
for help on using the changeset viewer.