Changeset 482 for trunk/hal/x86_64/core/hal_init.c
- Timestamp:
- Aug 21, 2018, 9:52:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_init.c
r457 r482 47 47 void kernel_init(boot_info_t *info); 48 48 49 static void gdt_create( );50 static void idt_create( );49 static void gdt_create( void ); 50 static void idt_create( void ); 51 51 void cpu_tls_init(size_t lid); 52 void cpu_identify( );52 void cpu_identify( void ); 53 53 void cpu_attach(size_t lid); 54 54 … … 85 85 * Configure the features of the system depending on the multiboot info. 86 86 */ 87 static void multiboot_init( )87 static void multiboot_init( void ) 88 88 { 89 89 size_t mmap_length = mb_info.mi_mmap_length; … … 118 118 /* -------------------------------------------------------------------------- */ 119 119 120 static size_t init_bootinfo_pages_nr( )120 static size_t init_bootinfo_pages_nr( void ) 121 121 { 122 122 size_t mmap_length = mb_info.mi_mmap_length; … … 273 273 static uint32_t cpuN_booted __in_kdata; 274 274 275 void start_secondary_cpus( )275 void start_secondary_cpus( void ) 276 276 { 277 277 pt_entry_t flags = PG_V | PG_KW; … … 311 311 } 312 312 313 void init_x86_64_cpuN( )313 void init_x86_64_cpuN( void ) 314 314 { 315 315 lid_t lid; … … 346 346 /* -------------------------------------------------------------------------- */ 347 347 348 static void apic_map( )348 static void apic_map( void ) 349 349 { 350 350 extern vaddr_t lapic_va, ioapic_va; … … 489 489 } 490 490 491 static void gdt_create( )491 static void gdt_create( void ) 492 492 { 493 493 memset(&gdtstore, 0, PAGE_SIZE); … … 506 506 } 507 507 508 void cpu_load_gdt( )508 void cpu_load_gdt( void ) 509 509 { 510 510 struct region_descriptor region; … … 519 519 } idt_bitmap __in_kdata; 520 520 521 int idt_slot_alloc( )521 int idt_slot_alloc( void ) 522 522 { 523 523 size_t i; … … 556 556 } 557 557 558 static void idt_create( )558 static void idt_create( void ) 559 559 { 560 560 extern uint64_t x86_traps[], x86_intrs[], x86_rsvd; … … 594 594 } 595 595 596 void cpu_load_idt( )596 void cpu_load_idt( void ) 597 597 { 598 598 struct region_descriptor region; … … 671 671 uint64_t cpu_features[4] __in_kdata; 672 672 673 void cpu_identify( )673 void cpu_identify( void ) 674 674 { 675 675 /*
Note: See TracChangeset
for help on using the changeset viewer.