Changeset 481


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
Files:
8 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" );
  • trunk/hal/tsar_mips32/drivers/soclib_pic.c

    r468 r481  
    5050
    5151///////////////////////////////
    52 uint32_t soclib_pic_wti_alloc()
     52uint32_t soclib_pic_wti_alloc( void )
    5353{
    5454    uint32_t index;
     
    6969
    7070///////////////////////////////////////
    71 inline uint32_t * soclib_pic_xcu_base()
     71inline uint32_t * soclib_pic_xcu_base( void )
    7272{
    7373    return ((soclib_pic_cluster_t *)(LOCAL_CLUSTER->pic_extend))->xcu_base;
     
    112112
    113113/////////////////////////////
    114 void soclib_pic_irq_handler()
     114void soclib_pic_irq_handler( void )
    115115{
    116116    uint32_t   hwi_status;   // HWI index + 1  / no pending HWI if 0
     
    532532
    533533////////////////////////////
    534 void soclib_pic_enable_ipi()
     534void soclib_pic_enable_ipi( void )
    535535{
    536536    // calling core local index
     
    557557
    558558/////////////////////////
    559 void soclib_pic_ack_ipi()
     559void soclib_pic_ack_ipi( void )
    560560{
    561561    // get calling core local index
  • trunk/hal/tsar_mips32/drivers/soclib_pic.h

    r451 r481  
    241241 * core local index.
    242242 *****************************************************************************************/
    243 void soclib_pic_enable_ipi();
     243void soclib_pic_enable_ipi( void );
    244244
    245245/******************************************************************************************
     
    257257 * core local index.
    258258 *****************************************************************************************/
    259 void soclib_pic_ack_ipi();
     259void soclib_pic_ack_ipi( void );
    260260
    261261
     
    277277 * large for the number of cores in the architecture, and the core goes to sleep.
    278278 *****************************************************************************************/
    279 uint32_t soclib_pic_wti_alloc();
     279uint32_t soclib_pic_wti_alloc( void );
    280280
    281281/******************************************************************************************
    282282 * This function returns the local pointer on the local XCU base segment.
    283283 *****************************************************************************************/
    284 uint32_t * soclib_pic_xcu_base();
     284uint32_t * soclib_pic_xcu_base( void );
    285285
    286286/******************************************************************************************
     
    304304 * This SOCLIB PIC specific is the call-back function is the interrupt handler.
    305305 *****************************************************************************************/
    306 void soclib_pic_irq_handler();
     306void soclib_pic_irq_handler( void );
    307307
    308308
Note: See TracChangeset for help on using the changeset viewer.