Ignore:
Timestamp:
May 10, 2017, 5:04:01 PM (5 years ago)
Author:
alain
Message:

mprove the HAL for interrupt, exception, syscall handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.c

    r14 r16  
    5151
    5252//////////////////////////////////////////////////////////////////////////////////////
    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.
    6654//////////////////////////////////////////////////////////////////////////////////////
    6755char * thread_type_str( uint32_t type )
    6856{
    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";
    7462    else                             return "undefined";
    7563}
     
    703691}  // end thread_idle()
    704692
    705 
     693/////////////////////////////////////////////////
     694void thread_user_time_update( thread_t * thread )
     695{
     696    // TODO
     697    printk("\n[WARNING] function %s not implemented\n", __FUNCTION__ );
     698}
     699
     700///////////////////////////////////////////////////
     701void thread_kernel_time_update( thread_t * thread )
     702{
     703    // TODO
     704    printk("\n[WARNING] function %s not implemented\n", __FUNCTION__ );
     705}
     706
     707////////////////////////////////////////////////
     708void 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.