Ignore:
Timestamp:
Aug 14, 2017, 7:33:59 PM (7 years ago)
Author:
alain
Message:

Add missing defines in the TSAR exception handler.

File:
1 edited

Legend:

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

    r380 r381  
    7878// This variable defines the "idle" threads descriptors array
    7979__attribute__((section(".kidle")))
    80 char                  idle_threads[CONFIG_THREAD_DESC_SIZE *
     80char                 idle_threads[CONFIG_THREAD_DESC_SIZE *
    8181                                   CONFIG_MAX_LOCAL_CORES]   CONFIG_PPM_PAGE_ALIGNED;
    8282
     
    683683
    684684    cxy_t        io_cxy = info->io_cxy;
     685
     686    assert( (io_cxy == ((info->x_size - 1)<<(info->y_width)) + (info->y_size - 1)) ,
     687    __FUNCTION__ , "illegal IO cluter identifier\n" );
    685688
    686689    /////////////////////////////////////////////////////////////////////////////////
     
    978981    /////////////////////////////////////////////////////////////////////////////////
    979982
    980     if( (core_lid ==  0) && (local_cxy == io_cxy) )
     983    if( (core_lid ==  0) && (local_cxy == 0) )
    981984    kinit_dmsg("\n[INFO] %s : exit barrier 5 : VFS_root = %l in cluster IO / cycle %d\n",
    982985    __FUNCTION__, vfs_root_inode_xp , hal_time_stamp() );
     
    10111014    /////////////////////////////////////////////////////////////////////////////////
    10121015
    1013     if( (core_lid ==  0) && (local_cxy == io_cxy) )
     1016    if( (core_lid ==  0) && (local_cxy == 0) )
    10141017    kinit_dmsg("\n[INFO] %s : exit barrier 6 : dev_root = %l in cluster IO / cycle %d\n",
    10151018    __FUNCTION__, devfs_dev_inode_xp , hal_time_stamp() );
     
    10621065
    10631066    /////////////////////////////////////////////////////////////////////////////////
    1064     if( core_lid == 0 ) remote_barrier( XPTR( info->io_cxy , &global_barrier ),
     1067    if( core_lid == 0 ) remote_barrier( XPTR( io_cxy , &global_barrier ),
    10651068                                        (info->x_size * info->y_size) );
    10661069    barrier_wait( &local_barrier , info->cores_nr );
Note: See TracChangeset for help on using the changeset viewer.