Changeset 556 for trunk/kernel/kern


Ignore:
Timestamp:
Sep 21, 2018, 10:25:39 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

Gather LETI-specific macros into hard_config.h

File:
1 edited

Legend:

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

    r550 r556  
    2424
    2525#include <kernel_config.h>
     26#include <hard_config.h> // for the USE_TXT_XXX macros
    2627#include <errno.h>
    2728#include <hal_kernel_types.h>
     
    424425
    425426        ///////////////////////////////
    426         else if ( func == DEV_FUNC_TXT && info->use_mty0 == 1 )
     427        else if ( func == DEV_FUNC_TXT && USE_TXT_MTY == 1 )
    427428        {
    428429            assert(impl == IMPL_TXT_MTY,
     
    592593            {
    593594                // skip TXT_TX[0] chdev that has already been created & registered
    594                 if( info->use_mty0 == 0 && (func == DEV_FUNC_TXT) && (channel == 0) && (rx == 0) )
     595                if( USE_TXT_MTY == 0 && (func == DEV_FUNC_TXT) && (channel == 0) && (rx == 0) )
    595596                {
    596597                    continue;
     
    598599
    599600                // skip TXT chdevs because they are initialized in internal_devices_init()
    600                 if ( info->use_mty0 == 1 && func == DEV_FUNC_TXT )
     601                if ( USE_TXT_MTY == 1 && func == DEV_FUNC_TXT )
    601602                {
    602603                    continue;
     
    967968    if( core_cxy == 0 && core_lid == 0 ) // [MODIF]
    968969    {
    969         if( info->use_mty0 == 1 ) {
     970        if( USE_TXT_MTY == 1 ) {
    970971            mtty0_device_init( info );
    971972        } else {
     
    13551356
    13561357#if (DEBUG_KERNEL_INIT & 1)
    1357 if( (core_lid ==  0) & (local_cxy == 0) )
     1358if( (core_lid ==  0) /*& (local_cxy == 0)*/ )
    13581359sched_display( 0 );
    13591360#endif
Note: See TracChangeset for help on using the changeset viewer.