Changeset 337 for trunk/kernel/libk
- Timestamp:
- Aug 7, 2017, 12:50:17 PM (7 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r333 r337 88 88 error_t error; 89 89 xptr_t buf_xp; 90 void * buf_ptr; 91 92 buf_ptr = GET_PTR( buffer ); 93 buf_xp = XPTR( local_cxy , buf_ptr ); 90 91 buf_xp = XPTR( local_cxy , buffer ); 94 92 95 93 // load .elf header -
trunk/kernel/libk/remote_rwlock.c
r318 r337 118 118 // enable interrupts 119 119 hal_restore_irq( mode ); 120 121 // deschedule if pending request 122 thread_check_sched(); 120 123 121 124 } // end remote_rwlock_rd_unlock() … … 201 204 // enable interrupts 202 205 hal_restore_irq( mode ); 206 207 // deschedule if pending request 208 thread_check_sched(); 203 209 204 210 } // end remote_rwlock_wr_unlock() -
trunk/kernel/libk/remote_spinlock.c
r296 r337 141 141 142 142 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , XPTR_NULL ); 143 144 143 hal_remote_sw ( XPTR( lock_cxy , &lock_ptr->taken ) , 0 ); 145 146 144 thread_ptr->remote_locks--; 147 148 145 xlist_unlink( XPTR( lock_cxy , &lock_ptr->list ) ); 149 146 147 // deschedule if pending request 148 thread_check_sched(); 149 150 // restore IRQs 150 151 hal_restore_irq( irq_state ); 151 152 } … … 211 212 212 213 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , XPTR_NULL ); 213 214 214 hal_remote_sw ( XPTR( lock_cxy , &lock_ptr->taken ) , 0 ); 215 216 215 thread_ptr->remote_locks--; 217 218 216 xlist_unlink( XPTR( lock_cxy , &lock_ptr->list ) ); 217 218 // deschedule if pending request 219 thread_check_sched(); 219 220 } 220 221 -
trunk/kernel/libk/rwlock.c
r124 r337 91 91 // enable IRQs 92 92 hal_restore_irq( mode ); 93 94 // deschedule if pending request 95 thread_check_sched(); 93 96 } 94 97 … … 141 144 lock->owner = NULL; 142 145 this->local_locks--; 143 146 144 147 // enable IRQs 145 148 hal_restore_irq( mode ); 149 150 // deschedule if pending request 151 thread_check_sched(); 146 152 } 147 153 -
trunk/kernel/libk/spinlock.c
r331 r337 84 84 list_unlink( &lock->list ); 85 85 86 hal_restore_irq( irq_state ); 86 // deschedule if pending request 87 thread_check_sched(); 88 89 // restore IRQs 90 hal_restore_irq( irq_state ); 87 91 } 88 92 … … 120 124 list_add_first( &this->locks_root , &lock->list ); 121 125 122 // enable interrupts126 // restore IRQs 123 127 hal_restore_irq( mode ); 124 128 } … … 160 164 this->local_locks--; 161 165 list_unlink( &lock->list ); 166 167 // deschedule if pending request 168 thread_check_sched(); 162 169 } 163 170 -
trunk/kernel/libk/string.c
r323 r337 129 129 const char * find) 130 130 { 131 char c, sc; 132 size_t len; 131 char sc; 132 char c; 133 uint32_t len; 133 134 134 135 if ((c = *find++) != 0) {
Note: See TracChangeset
for help on using the changeset viewer.