1
0
Fork 0

feat/kernel: Added IDT

This commit is contained in:
Kevin Alavik 2025-05-14 14:23:13 +02:00
parent 248879c099
commit af7599a266
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7
15 changed files with 412 additions and 19 deletions

View file

@ -6,6 +6,7 @@
#include <util/kprintf.h>
#include <util/log.h>
#include <arch/gdt.h>
#include <arch/idt.h>
__attribute__((used, section(".limine_requests"))) static volatile LIMINE_BASE_REVISION(3);
__attribute__((used, section(".limine_requests_start"))) static volatile LIMINE_REQUESTS_START_MARKER;
@ -21,11 +22,15 @@ void emk_entry(void)
if (!LIMINE_BASE_REVISION_SUPPORTED)
{
early("ERROR: Limine base revision is not supported\n");
log_early("ERROR: Limine base revision is not supported\n");
hcf();
}
gdt_init();
early("Initialized GDT");
log_early("Initialized GDT");
idt_init();
log_early("Initialized IDT");
__asm__ volatile("int $0x01");
hlt();
}