Changeset 124 for trunk/kernel/kern


Ignore:
Timestamp:
Jul 3, 2017, 2:36:39 PM (7 years ago)
Author:
max@…
Message:

rename hal_wbflush->hal_fence

Location:
trunk/kernel/kern
Files:
4 edited

Legend:

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

    r120 r124  
    159159                 __FUNCTION__ , local_cxy , hal_get_cycles() );
    160160
    161     hal_wbflush();
     161    hal_fence();
    162162
    163163        return 0;
  • trunk/kernel/kern/core.c

    r101 r124  
    101101        core->cycles         = cycles + elapsed;
    102102        core->ticks_nr       = ticks_nr + (elapsed / core->ticks_period);
    103         hal_wbflush();
     103        hal_fence();
    104104}
    105105
     
    145145        // update core descriptor
    146146        core->usage = usage;
    147         hal_wbflush();
     147        hal_fence();
    148148
    149149#if CONFIG_SHOW_CPU_USAGE
     
    164164        core->usage                 = 0;
    165165        core->thread_idle->ticks_nr = 0;
    166         hal_wbflush();
     166        hal_fence();
    167167}
    168168
  • trunk/kernel/kern/kernel_init.c

    r103 r124  
    670670    hal_set_current_thread( thread );
    671671
     672    list_root_init( &thread->locks_root );
     673    xlist_root_init( XPTR( local_cxy, &thread->xlocks_root ) );
     674
    672675    // CP0 in I/O cluster initialises TXT0 chdev descriptor
    673676    if( (core_lid == 0) && (core_cxy == info->io_cxy) ) txt0_device_init( info );
     
    727730    // CP0 initializes the process_zero descriptor
    728731    if( core_lid == 0 ) process_reference_init( &process_zero , 0 , XPTR_NULL );
     732
     733#ifdef __HAL_x86_64__
     734        return; /* XXX temporary */
     735#endif
    729736
    730737    // CP0 allocates and initialises the internal peripheral chdev descriptors.
  • trunk/kernel/kern/process.c

    r101 r124  
    165165    // initalise signal manager TODO [AG]
    166166
    167         hal_wbflush();
     167        hal_fence();
    168168
    169169    process_dmsg("\n[INFO] %s : exit for process %x in cluster %x\n",
     
    226226    // initalise signal manager TODO [AG]
    227227
    228         hal_wbflush();
     228        hal_fence();
    229229
    230230    return 0;
     
    265265   
    266266    // synchronize memory
    267         hal_wbflush();
     267        hal_fence();
    268268
    269269    // From this point, the process descriptor is unreachable
     
    815815        process_dmsg("\n[INFO] %s successfully exit in cluster %x\n", __FUNCTION__ , local_cxy );
    816816               
    817     hal_wbflush();
     817    hal_fence();
    818818
    819819} // end process_init_create()
Note: See TracChangeset for help on using the changeset viewer.