gonzui


Format: Advanced Search

tkernel_2/include/sys/misc.hbare sourcepermlink (0.03 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: /*
   16:  *      @(#)misc.h (sys)
   17:  *
   18:  *      Various functions useful for such as debug
   19:  */
   20: 
   21: #ifndef __SYS_MISC_H__
   22: #define __SYS_MISC_H__
   23: 
   24: #include <basic.h>
   25: #include <tk/tkernel.h>
   26: 
   27: #ifdef __cplusplus
   28: extern "C" {
   29: #endif
   30: 
   31: /*
   32:  * Task register display (libtk)
   33:  *      Display the contents of 'gr,' 'er,' and 'cr' using 'prfn.'
   34:  *      'prfn' needs to be a printf compatible function.
   35:  *      Return the number of rows displayed in the return value.
   36:  */
   37: IMPORT W PrintTaskRegister( int (*prfn)( const char *format, ... ),
   38:                                 T_REGS *gr, T_EIT *er, T_CREGS *cr );
   39: 
   40: #ifdef __cplusplus
   41: }
   42: #endif
   43: #endif /* __SYS_MISC_H__ */