aboutsummaryrefslogtreecommitdiff
path: root/src/core/idt.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/idt.hpp')
-rw-r--r--src/core/idt.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/idt.hpp b/src/core/idt.hpp
index 2f2050d..1133ad1 100644
--- a/src/core/idt.hpp
+++ b/src/core/idt.hpp
@@ -5,7 +5,7 @@
#define IDT_GATE_SIZE 16
#define IDT_MAX_ENTRIES 200
-#define IDT_ADDR 0x200000
+#define IDT_ADDR 0
#define IDT_OPT_P (1 << 15)
#define IDT_OPT_TYPE_INT 0xE << 8
@@ -27,5 +27,8 @@ typedef struct IDT_DESCRIPTOR {
u32 ign;
} __attribute__((packed)) IDT_DESCRIPTOR;
+/// @brief 3 u32 per entry
+extern u32 idt[IDT_MAX_ENTRIES][4];
+
void idt_enable_interrupt(void);
void idt_write_descriptor(IDT_DESCRIPTOR desc, u16 index); \ No newline at end of file