From c07949da0eda835491174c17d44f07844c477d70 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 11 Jul 2019 02:27:58 -0700 Subject: [PATCH] Start interrupt table --- src/interrupts.rs | 6 ++++++ src/main.rs | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/interrupts.rs diff --git a/src/interrupts.rs b/src/interrupts.rs new file mode 100644 index 0000000..3e82f38 --- /dev/null +++ b/src/interrupts.rs @@ -0,0 +1,6 @@ + +use x86_64::structures::idt::InterruptDescriptorTable; + +pub fn init_idt() { + let mut idt = InterruptDescriptorTable::new(); +} diff --git a/src/main.rs b/src/main.rs index fb8470e..8038fb2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ #[macro_use] mod vga_buffer; +mod interrupts; use core::panic::PanicInfo;