Changeset 124 for trunk/kernel


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

rename hal_wbflush->hal_fence

Location:
trunk/kernel
Files:
21 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()
  • trunk/kernel/libk/grdxt.c

    r1 r124  
    221221    // register the value
    222222        ptr3[ix3] = value;
    223         hal_wbflush();
     223        hal_fence();
    224224
    225225        return 0;
     
    264264    // reset selected slot
    265265        ptr3[ix3] = NULL;
    266         hal_wbflush();
     266        hal_fence();
    267267
    268268        return value;
  • trunk/kernel/libk/readlock.c

    r14 r124  
    6666
    6767    // sync
    68     hal_wbflush();
     68    hal_fence();
    6969
    7070    // release lock to support several parallel read access
  • trunk/kernel/libk/remote_fifo.c

    r68 r124  
    113113    // copy item to fifo
    114114        hal_remote_swd( XPTR( cxy , &ptr->data[ptw] ), *item );
    115         hal_wbflush();
     115        hal_fence();
    116116
    117117    // set the slot valid flag
    118118        hal_remote_sw( XPTR( cxy , &ptr->valid[ptw] ) , 1 );
    119         hal_wbflush();
     119        hal_fence();
    120120
    121121    // return the first RPC flag
  • trunk/kernel/libk/remote_mutex.c

    r60 r124  
    214214    } 
    215215
    216     hal_wbflush();
     216    hal_fence();
    217217
    218218}  // end remote_mutex_lock()
  • trunk/kernel/libk/remote_rwlock.c

    r60 r124  
    8282
    8383    // sync
    84     hal_wbflush();
     84    hal_fence();
    8585
    8686    // release lock to allow several simultaneous readers
  • trunk/kernel/libk/rwlock.c

    r60 r124  
    6666
    6767    // consistency
    68     hal_wbflush();
     68    hal_fence();
    6969
    7070    // release the lock to allow several simultaneous readers
  • trunk/kernel/mm/kmem.c

    r50 r124  
    171171        cluster->kcm_tbl[type] = kcm;
    172172
    173         hal_wbflush();
     173        hal_fence();
    174174
    175175        kmem_dmsg("\n[INFO] %s : exit / KCM type %s created in cluster %x\n",
  • trunk/kernel/mm/vmm.c

    r101 r124  
    180180        vmm->m_err_nr            = 0;
    181181
    182     hal_wbflush();
     182    hal_fence();
    183183
    184184}  // end vmm_init()
     
    299299    hal_gpt_copy( &dst_vmm->gpt , &src_vmm->gpt , cow );
    300300
    301     hal_wbflush();
     301    hal_fence();
    302302
    303303    return 0;
  • trunk/kernel/syscalls/sys_close.c

    r23 r124  
    7070        }
    7171
    72         hal_wbflush();
     72        hal_fence();
    7373
    7474        return 0;
  • trunk/kernel/syscalls/sys_getcwd.c

    r23 r124  
    8282    hal_copy_to_uspace( buf , kbuf , CONFIG_VFS_MAX_PATH_LENGTH );
    8383
    84     hal_wbflush();
     84    hal_fence();
    8585
    8686        return 0;
  • trunk/kernel/syscalls/sys_kill.c

    r23 r124  
    9595    remote_spinlock_unlock( lock_xp );
    9696
    97     hal_wbflush();
     97    hal_fence();
    9898
    9999        return 0;
  • trunk/kernel/syscalls/sys_read.c

    r23 r124  
    127127    }
    128128
    129     hal_wbflush();
     129    hal_fence();
    130130
    131131        return 0;
  • trunk/kernel/syscalls/sys_stat.c

    r23 r124  
    8080    hal_copy_to_uspace( stat , &k_stat , sizeof(struct vfs_stat_s) );
    8181
    82     hal_wbflush();
     82    hal_fence();
    8383
    8484        return 0;
  • trunk/kernel/syscalls/sys_timeofday.c

    r50 r124  
    7575        hal_copy_to_uspace( tv , &k_tv , sizeof(struct timeval) );
    7676
    77     hal_wbflush();
     77    hal_fence();
    7878
    7979        return 0;
  • trunk/kernel/syscalls/sys_trace.c

    r23 r124  
    6666    }
    6767
    68     hal_wbflush();
     68    hal_fence();
    6969
    7070    return 0;
  • trunk/kernel/syscalls/sys_write.c

    r23 r124  
    124124    }
    125125
    126     hal_wbflush();
     126    hal_fence();
    127127
    128128        return 0;
  • trunk/kernel/vfs/vfs.c

    r101 r124  
    652652        remote_rwlock_wr_unlock( lock_xp );
    653653
    654         hal_wbflush();
     654        hal_fence();
    655655    }   
    656656
Note: See TracChangeset for help on using the changeset viewer.