This commit is contained in:
2024-09-30 13:01:56 +02:00
parent ab702aabe7
commit 0c540a11da
2 changed files with 45 additions and 0 deletions

9
headers/idt.h Normal file
View File

@ -0,0 +1,9 @@
#pragma once
// doc : https://wiki.osdev.org/Interrupt_Descriptor_Table#IDTR
struct {
uint16_t size;
uint32_t offset;
} __attribute__((packed)) idt_descriptor;
#define IDT_SIZE 256