kernel: x86-64 idt

This commit is contained in:
Matheus
2023-04-08 21:13:43 -03:00
parent ef2d0fc874
commit 7b58504b01
6 changed files with 151 additions and 10 deletions
+3
View File
@@ -2,6 +2,7 @@
#include <logging.h>
#include <arch/cpu.h>
#include <arch/gdt.h>
#include <arch/idt.h>
static cpu_t bsp_cpu;
@@ -9,5 +10,7 @@ void kernel_entry() {
cpu_set(&bsp_cpu);
logging_sethook(arch_e9_putc);
arch_gdt_reload();
arch_idt_setup();
arch_idt_reload();
__assert(!"kernel entry end");
}