Changeset 296 for trunk/kernel/kern/thread.c
- Timestamp:
- Jul 31, 2017, 1:59:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r286 r296 54 54 char * thread_type_str( uint32_t type ) 55 55 { 56 if ( type == THREAD_USER ) return "US ER";56 if ( type == THREAD_USER ) return "USR"; 57 57 else if( type == THREAD_RPC ) return "RPC"; 58 58 else if( type == THREAD_DEV ) return "DEV"; 59 else if( type == THREAD_KERNEL ) return "KER NEL";60 else if( type == THREAD_IDLE ) return "IDL E";59 else if( type == THREAD_KERNEL ) return "KER"; 60 else if( type == THREAD_IDLE ) return "IDL"; 61 61 else return "undefined"; 62 62 } … … 199 199 200 200 return 0; 201 } 201 202 } // end thread_init() 202 203 203 204 ///////////////////////////////////////////////////////// … … 309 310 *new_thread = thread; 310 311 return 0; 311 } 312 313 } // end thread_user_create() 312 314 313 315 ////////////////////////////////////////////// … … 395 397 *new_thread = thread; 396 398 return 0; 397 } 399 400 } // end thread_user_fork() 398 401 399 402 ///////////////////////////////////////////////////////// … … 407 410 thread_t * thread; // pointer on new thread descriptor 408 411 409 thread_dmsg("\n[INFO] %s : enter s for type %s in cluster %x\n",410 __FUNCTION__ , thread_type_str( type ) , local_cxy);412 thread_dmsg("\n[INFO] %s : enter / for type %s on core[%x,%d] / cycle %d\n", 413 __FUNCTION__ , thread_type_str( type ) , local_cxy , core_lid , hal_time_stamp() ); 411 414 412 415 assert( ( (type == THREAD_KERNEL) || (type == THREAD_RPC) || … … 440 443 hal_cpu_context_create( thread ); 441 444 442 thread_dmsg("\n[INFO] %s : exit in cluster %x / trdid = %x / core_lid = %d\n", 443 __FUNCTION__ , local_cxy , thread->trdid , core_lid ); 445 thread_dmsg("\n[INFO] %s : exit / trdid = %x / type = %s / core = [%x,%d] / cycle %d\n", 446 __FUNCTION__ , thread->trdid , thread_type_str(type) , 447 local_cxy , core_lid , hal_time_stamp() ); 444 448 445 449 *new_thread = thread; 446 450 return 0; 447 } 451 452 } // end thread_kernel_create() 448 453 449 454 /////////////////////////////////////////////////// … … 685 690 686 691 // deschedule 687 sched_yield( );692 sched_yield( NULL ); 688 693 return 0; 689 694 } … … 741 746 742 747 // force scheduling 743 sched_yield( );748 sched_yield( NULL ); 744 749 } 745 750 }
Note: See TracChangeset
for help on using the changeset viewer.