Changeset 71 for trunk/kernel


Ignore:
Timestamp:
Jun 27, 2017, 10:43:33 AM (7 years ago)
Author:
max@…
Message:

advance a little

File:
1 edited

Legend:

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

    r70 r71  
    658658                                  &core_gid );
    659659
     660    // CP0 initialise cluster identifier
     661    if( core_lid == 0 ) local_cxy = info->cxy;
     662
     663    // each core get pointer on its private idle thread descriptor
     664        thread = (thread_t *)( idle_threads + (core_lid * CONFIG_THREAD_DESC_SIZE) );
     665
     666    // each core registers this thread pointer in hardware register
     667    hal_set_current_thread( thread );
     668
    660669#ifdef __HAL_x86_64__
    661670        return;
    662671#endif
    663672
    664     // CP0 initialise cluster identifier
    665     if( core_lid == 0 ) local_cxy = info->cxy;
    666 
    667     // each core get pointer on its private idle thread descriptor
    668         thread = (thread_t *)( idle_threads + (core_lid * CONFIG_THREAD_DESC_SIZE) );
    669 
    670     // each core register this thread pointer in hardware register
    671     hal_set_current_thread( thread );
    672    
    673673    // CP0 in I/O cluster initialises TXT0 chdev descriptor
    674674    if( (core_lid == 0) && (core_cxy == info->io_cxy) ) txt0_device_init( info );
Note: See TracChangeset for help on using the changeset viewer.