gonzui


Format: Advanced Search

tkernel_2/lib/libtk/src/knlinit.cbare sourcepermlink (0.01 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:  *      @(#)knlinit.c (libtk)
   17:  *
   18:  *      KnlInit() is always linked as it is called from the
   19:  *      manager startup part.
   20:  *      Note that adding too many processing can make the
   21:  *      program quite large.
   22:  */
   23: 
   24: #include <basic.h>
   25: #include <sys/commarea.h>
   26: #include <tk/sysmgr.h>
   27: 
   28: /*
   29:  * Kernel utility initialization
   30:  */
   31: EXPORT void KnlInit( void )
   32: {
   33:         if ( __CommArea == NULL ) {
   34:                 /* Get kernel common data area */
   35:                 _GetKernelCommonArea(&__CommArea);
   36:         }
   37: }