Began using Limine as a bootloader instead of QEMUs mb1 bootloader.

This commit is contained in:
2025-04-14 20:15:05 +02:00
parent f1bdfc9c9f
commit 354339e831
11 changed files with 82 additions and 10 deletions
+2
View File
@@ -61,6 +61,8 @@ int gdt_init(void) {
gdt_reload();
tss_reload();
debugf("[gdt] GDT loaded.\n");
return 0;
}
+3
View File
@@ -22,7 +22,10 @@ int idt_init(void) {
idtp.limit = sizeof(idt);
idtp.base = (uint32_t)&idt;
// Load IDT instruction
__asm__ volatile ("lidt %0" : : "m"(idtp));
debugf("[idt] IDT initalized.\n");
return 0;
}
+2
View File
@@ -70,6 +70,8 @@ int isr_init(void) {
// Let interrupts interrupt
__asm__ volatile ("sti");
debugf("[isr] ISR initialized.\n");
return 0;
}
+2
View File
@@ -43,6 +43,8 @@ int pag_init(void) {
memset(pagedirs, 0, PAGE_SIZE * PAGE_DIR_COUNT);
memset(pagedirUsed, 0, PAGE_DIR_COUNT);
debugf("[pag] Paging initalized.\n");
return 0;
}