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

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

File:
1 edited

Legend:

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

    r459 r481  
    3333
    3434//////////////////////////
    35 inline gid_t hal_get_gid()
     35inline gid_t hal_get_gid( void )
    3636{
    3737        uint32_t proc_id;
     
    4343
    4444/////////////////////////////
    45 inline reg_t hal_time_stamp()
     45inline reg_t hal_time_stamp( void )
    4646{
    4747    reg_t count;
     
    5353
    5454/////////////////////////
    55 inline reg_t hal_get_sr()
     55inline reg_t hal_get_sr( void )
    5656{
    5757    reg_t sr;
     
    6363
    6464/////////////////////////
    65 uint64_t hal_get_cycles()
     65uint64_t hal_get_cycles( void )
    6666{
    6767        uint64_t cycles;                // absolute time to be returned
     
    9595
    9696/////////////////////////////////////////////////
    97 inline struct thread_s * hal_get_current_thread()
     97inline struct thread_s * hal_get_current_thread( void )
    9898{
    9999        void * thread_ptr;
     
    111111
    112112/////////////////////
    113 void hal_fpu_enable()
     113void hal_fpu_enable( void )
    114114{
    115115    // set CU1 bit (FPU enable) in c0_sr
     
    128128
    129129//////////////////////
    130 void hal_fpu_disable()
     130void hal_fpu_disable( void )
    131131{
    132132    // reset CU1 bit (FPU enable) in c0_sr
     
    146146
    147147////////////////////////
    148 uint32_t hal_get_stack()
     148uint32_t hal_get_stack( void )
    149149{
    150150        register uint32_t sp;
     
    169169
    170170////////////////////////////
    171 uint32_t hal_get_bad_vaddr()
     171uint32_t hal_get_bad_vaddr( void )
    172172{
    173173        register uint32_t bad_va;
     
    202202
    203203////////////////
    204 void hal_fence()
     204void hal_fence( void )
    205205{
    206206        asm volatile ("sync");
     
    208208
    209209////////////////
    210 void hal_rdbar()
     210void hal_rdbar( void )
    211211{
    212212        asm volatile( "" ::: "memory" );
     
    214214
    215215/////////////////////
    216 void hal_core_sleep()
     216void hal_core_sleep( void )
    217217{
    218218        while( 1 ) asm volatile ("nop");
Note: See TracChangeset for help on using the changeset viewer.