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_init.c

    r457 r482  
    4747void kernel_init(boot_info_t *info);
    4848
    49 static void gdt_create();
    50 static void idt_create();
     49static void gdt_create( void );
     50static void idt_create( void );
    5151void cpu_tls_init(size_t lid);
    52 void cpu_identify();
     52void cpu_identify( void );
    5353void cpu_attach(size_t lid);
    5454
     
    8585 * Configure the features of the system depending on the multiboot info.
    8686 */
    87 static void multiboot_init()
     87static void multiboot_init( void )
    8888{
    8989        size_t mmap_length = mb_info.mi_mmap_length;
     
    118118/* -------------------------------------------------------------------------- */
    119119
    120 static size_t init_bootinfo_pages_nr()
     120static size_t init_bootinfo_pages_nr( void )
    121121{
    122122        size_t mmap_length = mb_info.mi_mmap_length;
     
    273273static uint32_t cpuN_booted __in_kdata;
    274274
    275 void start_secondary_cpus()
     275void start_secondary_cpus( void )
    276276{
    277277        pt_entry_t flags = PG_V | PG_KW;
     
    311311}
    312312
    313 void init_x86_64_cpuN()
     313void init_x86_64_cpuN( void )
    314314{
    315315        lid_t lid;
     
    346346/* -------------------------------------------------------------------------- */
    347347
    348 static void apic_map()
     348static void apic_map( void )
    349349{
    350350        extern vaddr_t lapic_va, ioapic_va;
     
    489489}
    490490
    491 static void gdt_create()
     491static void gdt_create( void )
    492492{
    493493        memset(&gdtstore, 0, PAGE_SIZE);
     
    506506}
    507507
    508 void cpu_load_gdt()
     508void cpu_load_gdt( void )
    509509{
    510510        struct region_descriptor region;
     
    519519} idt_bitmap __in_kdata;
    520520
    521 int idt_slot_alloc()
     521int idt_slot_alloc( void )
    522522{
    523523        size_t i;
     
    556556}
    557557
    558 static void idt_create()
     558static void idt_create( void )
    559559{
    560560        extern uint64_t x86_traps[], x86_intrs[], x86_rsvd;
     
    594594}
    595595
    596 void cpu_load_idt()
     596void cpu_load_idt( void )
    597597{
    598598        struct region_descriptor region;
     
    671671uint64_t cpu_features[4] __in_kdata;
    672672
    673 void cpu_identify()
     673void cpu_identify( void )
    674674{
    675675        /*
Note: See TracChangeset for help on using the changeset viewer.