Kernel: IDT now confirms that it allocated succesfully

This commit is contained in:
Bananymous
2023-02-22 21:48:40 +02:00
parent 0e77b4dc4e
commit c9ea22f5e2
2 changed files with 2 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ namespace IDT
void initialize()
{
s_idt = (GateDescriptor*)kmalloc(0x100 * sizeof(GateDescriptor));
ASSERT(s_idt);
memset(s_idt, 0x00, 0x100 * sizeof(GateDescriptor));
s_idtr.offset = (uint64_t)s_idt;