Changeset 669 for trunk/kernel/kern/scheduler.c
- Timestamp:
- Nov 19, 2020, 11:44:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/scheduler.c
r651 r669 85 85 86 86 // check kernel threads list 87 assert( (count < sched->k_threads_nr), "bad kernel threads list" );87 assert( __FUNCTION__, (count < sched->k_threads_nr), "bad kernel threads list" ); 88 88 89 89 // get next entry in kernel list … … 119 119 120 120 // check user threads list 121 assert( (count < sched->u_threads_nr), "bad user threads list" );121 assert( __FUNCTION__, (count < sched->u_threads_nr), "bad user threads list" ); 122 122 123 123 // get next entry in user list … … 196 196 197 197 // check target thread blocked 198 assert( (thread->blocked & THREAD_BLOCKED_GLOBAL) , "thread not blocked" );198 assert( __FUNCTION__, (thread->blocked & THREAD_BLOCKED_GLOBAL) , "thread not blocked" ); 199 199 200 200 // decrement response counter … … 210 210 211 211 // check calling thread != target thread 212 assert( (thread != CURRENT_THREAD) , "calling thread cannot delete itself" );212 assert( __FUNCTION__, (thread != CURRENT_THREAD) , "calling thread cannot delete itself" ); 213 213 214 214 // get thread process descriptor … … 287 287 288 288 // check process descriptor is local kernel process 289 assert( ( thread->process == &process_zero ) , "illegal process descriptor");289 assert( __FUNCTION__, ( thread->process == &process_zero ) , "illegal process descriptor"); 290 290 291 291 // get thread ltid … … 322 322 323 323 // check th_nr value 324 assert( (process_zero.th_nr > 0) , "kernel process th_nr cannot be 0" );324 assert( __FUNCTION__, (process_zero.th_nr > 0) , "kernel process th_nr cannot be 0" ); 325 325 326 326 // remove thread from process th_tbl[] … … 495 495 // This assert should always be true, as this check has been 496 496 // done before, by any function that can possibly deschedule... 497 assert( (current->busylocks == 0),497 assert( __FUNCTION__, (current->busylocks == 0), 498 498 "current thread hold %d busylocks\n", current->busylocks ); 499 499 … … 511 511 512 512 // check next thread kernel_stack overflow 513 assert( (next->signature == THREAD_SIGNATURE),513 assert( __FUNCTION__, (next->signature == THREAD_SIGNATURE), 514 514 "kernel stack overflow for thread %x on core[%x,%d]", next, local_cxy, lid ); 515 515 516 516 // check next thread attached to same core as the current thread 517 assert( (next->core == current->core),517 assert( __FUNCTION__, (next->core == current->core), 518 518 "next_core_lid %d / current_core_lid %d", current->core->lid, next->core->lid ); 519 519 520 520 // check next thread not blocked when type != IDLE 521 assert( ((next->blocked == 0) || (next->type == THREAD_IDLE)) ,521 assert( __FUNCTION__, ((next->blocked == 0) || (next->type == THREAD_IDLE)) , 522 522 "next thread %x (%s) is blocked on core[%x,%d]", 523 523 next->trdid , thread_type_str(next->type) , local_cxy , lid );
Note: See TracChangeset
for help on using the changeset viewer.