Ignore:
Timestamp:
Aug 21, 2018, 9:52:05 PM (6 years ago)
Author:
viala@…
Message:

[hal/x86_64] Add void type to function prototypes with no parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_special.c

    r457 r482  
    3232struct thread_s;
    3333
    34 tls_t *curtls()
     34tls_t *curtls( void )
    3535{
    3636        tls_t *cputls;
     
    4343}
    4444
    45 gid_t hal_get_gid()
     45gid_t hal_get_gid( void )
    4646{
    4747        return curtls()->tls_gid;
    4848}
    4949
    50 cycle_t hal_time_stamp()
     50cycle_t hal_time_stamp( void )
    5151{
    5252        return rdtsc();
    5353}
    5454
    55 inline reg_t hal_get_sr()
     55inline reg_t hal_get_sr( void )
    5656{
    5757        return 0;
    5858}
    5959
    60 uint64_t hal_get_cycles()
     60uint64_t hal_get_cycles( void )
    6161{
    6262        uint64_t cycles;
     
    7373}
    7474
    75 struct thread_s *hal_get_current_thread()
     75struct thread_s *hal_get_current_thread( void )
    7676{
    7777        return curtls()->tls_thr;
     
    8585/* -------------------------------------------------------------------------- */
    8686
    87 void hal_fpu_enable()
     87void hal_fpu_enable( void )
    8888{
    8989        /* FPU not implemented yet */
     
    9292}
    9393
    94 void hal_fpu_disable()
     94void hal_fpu_disable( void )
    9595{
    9696        /* FPU not implemented yet */
     
    9999}
    100100
    101 uint32_t hal_get_stack()
     101uint32_t hal_get_stack( void )
    102102{
    103103        x86_panic((char *)__func__);
     
    111111}
    112112
    113 uint32_t hal_get_bad_vaddr()
     113uint32_t hal_get_bad_vaddr( void )
    114114{
    115115        x86_panic((char *)__func__);
     
    128128}
    129129
    130 void hal_fence()
     130void hal_fence( void )
    131131{
    132132        mfence();
    133133}
    134134
    135 void hal_rdbar()
     135void hal_rdbar( void )
    136136{
    137137        x86_panic((char *)__func__);
    138138}
    139139
    140 void hal_core_sleep()
     140void hal_core_sleep( void )
    141141{
    142142        x86_panic((char *)__func__);
Note: See TracChangeset for help on using the changeset viewer.