Changeset 16 for trunk/kernel/kern/thread.c
- Timestamp:
- May 10, 2017, 5:04:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r14 r16 51 51 52 52 ////////////////////////////////////////////////////////////////////////////////////// 53 // global variables for display / must be consistant with enum in "thread.h" 54 ////////////////////////////////////////////////////////////////////////////////////// 55 56 const char* thread_type_name[THREAD_TYPES_NR] = 57 { 58 "USER", 59 "RPC" 60 "KERNEL", 61 "IDLE", 62 }; 63 64 ////////////////////////////////////////////////////////////////////////////////////// 65 // This static function returns a printable string for the thread type. 53 // This function returns a printable string for the thread type. 66 54 ////////////////////////////////////////////////////////////////////////////////////// 67 55 char * thread_type_str( uint32_t type ) 68 56 { 69 if ( type == THREAD_USER ) return " THREAD_USER";70 else if( type == THREAD_RPC ) return " THREAD_RPC";71 else if( type == THREAD_DEV ) return " THREAD_DEV";72 else if( type == THREAD_KERNEL ) return " THREAD_KERNEL";73 else if( type == THREAD_IDLE ) return " THREAD_IDLE";57 if ( type == THREAD_USER ) return "USER"; 58 else if( type == THREAD_RPC ) return "RPC"; 59 else if( type == THREAD_DEV ) return "DEV"; 60 else if( type == THREAD_KERNEL ) return "KERNEL"; 61 else if( type == THREAD_IDLE ) return "IDLE"; 74 62 else return "undefined"; 75 63 } … … 703 691 } // end thread_idle() 704 692 705 693 ///////////////////////////////////////////////// 694 void thread_user_time_update( thread_t * thread ) 695 { 696 // TODO 697 printk("\n[WARNING] function %s not implemented\n", __FUNCTION__ ); 698 } 699 700 /////////////////////////////////////////////////// 701 void thread_kernel_time_update( thread_t * thread ) 702 { 703 // TODO 704 printk("\n[WARNING] function %s not implemented\n", __FUNCTION__ ); 705 } 706 707 //////////////////////////////////////////////// 708 void thread_signals_handler( thread_t * thread ) 709 { 710 // TODO 711 printk("\n[WARNING] function %s not implemented\n", __FUNCTION__ ); 712 } 713 714
Note: See TracChangeset
for help on using the changeset viewer.