feature (kernel): Logging init process to limine terminal

This commit is contained in:
antifallobst 2023-02-21 14:22:47 +01:00
parent 836b10471e
commit 65b2ba08f4
1 changed files with 18 additions and 0 deletions

View File

@ -32,18 +32,36 @@ void limine_terminal_print(boot_info_T* boot_info, string_t string) {
}
void kernel_init(boot_info_T* boot_info) {
limine_terminal_print(boot_info, " Initializing page frame manager...");
pframe_manager_init(boot_info);
limine_terminal_print(boot_info, " ok\n");
CORE_INTERRUPTS_DISABLE
limine_terminal_print(boot_info, " Initializing idt...");
idt_init();
limine_terminal_print(boot_info, " ok\n");
limine_terminal_print(boot_info, " Initializing pic...");
pic_init();
limine_terminal_print(boot_info, " ok\n");
limine_terminal_print(boot_info, " Initializing pit...");
pit_set_divisor(PIT_DIVISOR);
limine_terminal_print(boot_info, " ok\n");
CORE_INTERRUPTS_ENABLE
limine_terminal_print(boot_info, " Initializing paging...");
paging_init();
limine_terminal_print(boot_info, " ok\n");
limine_terminal_print(boot_info, " Initializing heap...");
memory_allocator_init((void*)0x100000000000);
limine_terminal_print(boot_info, " ok\n");
limine_terminal_print(boot_info, " Initializing graphics renderer...");
graphics_renderer_init(boot_info);
limine_terminal_print(boot_info, " ok\n");
limine_terminal_print(boot_info, " Initializing scheduler...");
scheduler_init();
limine_terminal_print(boot_info, " ok\n");
}
void kmain(boot_info_T boot_info) {