Ignore:
Timestamp:
Apr 26, 2017, 2:11:56 PM (7 years ago)
Author:
alain
Message:

Introduce the chdev_t structure in place of the device_t structure.

File:
1 edited

Legend:

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

    r1 r5  
    4848///////////////////////////////////////////////////////////////////////////////////////////
    4949
    50 process_t process_zero;
     50process_t process_zero;     // allocated in kernel_init.c file
    5151
    5252
     
    7878    cluster->cores_in_kernel = info->cores_nr;   // all cpus start in kernel mode
    7979
    80     // initialize kcm lock
     80    // initialize the lock protectig the embedded kcm allocator
    8181        spinlock_init( &cluster->kcm_lock );
    82 
    83     // initialize txt0 lock
    84         remote_spinlock_init( XPTR( local_cxy , &cluster->txt0_lock ) );
    8582
    8683    // initialises DQDT
     
    10097 
    10198    // initialises embedded KCM
    102         kcm_init( &cluster->kcm , KMEM_KCM ); 
    103 
    104     // initialises cores
     99        kcm_init( &cluster->kcm , KMEM_KCM );
     100
     101    // initialises all cores descriptors
    105102        for( lid = 0 ; lid < cluster->cores_nr; lid++ )
    106103        {
Note: See TracChangeset for help on using the changeset viewer.