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

Location:
trunk/hal/tsar_mips32/core
Files:
6 edited

Legend:

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

    r469 r481  
    396396
    397397///////////////////////
    398 void hal_do_exception()
     398void hal_do_exception( void )
    399399{
    400400    uint32_t   * uzone;
  • trunk/hal/tsar_mips32/core/hal_interrupt.c

    r457 r481  
    3030
    3131///////////////////////
    32 void hal_do_interrupt()
     32void hal_do_interrupt( void )
    3333{
    3434    // ALMOS-MKH does not define a generic interrupt handler.
  • trunk/hal/tsar_mips32/core/hal_kentry.h

    r408 r481  
    9797 * to address contained in EPC calling hal_kentry_eret()
    9898 ************************************************************************************/
    99 void hal_kentry_enter();
     99void hal_kentry_enter( void );
    100100
    101101/*************************************************************************************
     
    104104 * contained in the c0_epc register.
    105105 * ************************************************************************************/
    106 void hal_kentry_eret();
     106void hal_kentry_eret( void );
    107107
    108108#endif  /* _HAL_KENTRY_H_ */
  • 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");
  • trunk/hal/tsar_mips32/core/hal_syscall.c

    r457 r481  
    3030
    3131/////////////////////
    32 void hal_do_syscall()
     32void hal_do_syscall( void )
    3333{
    3434    thread_t    * this;
  • trunk/hal/tsar_mips32/core/hal_user.c

    r425 r481  
    8484
    8585/////////////////////
    86 void hal_user_fence()
     86void hal_user_fence( void )
    8787{
    8888        asm volatile ( "sync" );
Note: See TracChangeset for help on using the changeset viewer.