Ignore:
Timestamp:
Aug 21, 2018, 9:52:05 PM (3 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_internal.h

    r368 r482  
    3333/* hal_init.c */
    3434void cpu_activate(uint32_t gid);
    35 int idt_slot_alloc();
     35int idt_slot_alloc( void );
    3636void idt_slot_free(int slot);
    3737
    3838/* hal_cpu.S */
    3939void invlpg(vaddr_t va);
    40 void sti();
    41 void cli();
    42 uint64_t rdtsc();
     40void sti( void );
     41void cli( void );
     42uint64_t rdtsc( void );
    4343uint8_t in8(uint32_t port);
    4444uint16_t in16(uint32_t port);
     
    4747uint64_t rdmsr(uint32_t);
    4848void wrmsr(uint32_t, uint64_t);
    49 void mfence();
     49void mfence( void );
    5050uint64_t rcr0(void);
    5151vaddr_t rcr2(void);
     
    5555void lcr4(uint64_t);
    5656void cpuid(uint32_t eax, uint32_t ecx, uint32_t *desc);
    57 void tlbflushg();
    58 void tlbflush();
    59 void clts();
    60 void stts();
    61 void pause();
    62 void wbinvd();
     57void tlbflushg( void );
     58void tlbflush( void );
     59void clts( void );
     60void stts( void );
     61void pause( void );
     62void wbinvd( void );
    6363
    6464void cpu_context_switch(void *oldctx, void *newctx);
     
    7272paddr_t hal_gpt_bootstrap_palloc(size_t npages);
    7373vaddr_t hal_gpt_bootstrap_valloc(size_t npages);
    74 void hal_gpt_bootstrap_reset();
    75 size_t hal_gpt_bootstrap_uniformize();
     74void hal_gpt_bootstrap_reset( void );
     75size_t hal_gpt_bootstrap_uniformize( void );
    7676
    7777void hal_gpt_enter(vaddr_t va, paddr_t pa, pt_entry_t flags);
     
    8585
    8686/* x86_printf.c */
    87 void x86_lock();
    88 void x86_unlock();
     87void x86_lock( void );
     88void x86_unlock( void );
    8989
    9090void x86_panic(char *msg);
Note: See TracChangeset for help on using the changeset viewer.