add: idt
This commit is contained in:
9
headers/idt.h
Normal file
9
headers/idt.h
Normal 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
|
Reference in New Issue
Block a user