aboutsummaryrefslogtreecommitdiffstats
path: root/idt.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'idt.hpp')
-rw-r--r--idt.hpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/idt.hpp b/idt.hpp
deleted file mode 100644
index c5e7e47..0000000
--- a/idt.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef IDT_HPP
-#define IDT_HPP
-
-#include <cstddef>
-#include <cstdint>
-
-struct Registers
-{
- std::uint32_t inum;
- std::uint32_t ds;
- std::uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
- std::uint32_t error;
- std::uint32_t eip, cs, eflags;
-} __attribute__((packed));
-
-using Callback = void (*)(const Registers&);
-
-void idt_initialize();
-void idt_register_callback(std::size_t num, Callback cb);
-
-#endif // IDT_HPP
-