From ade6c99885d2969a7d32551a3fba9955282f5656 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 25 Jan 2019 13:47:28 +0100 Subject: [PATCH] Add an interrupts module --- src/interrupts.rs | 5 +++++ src/lib.rs | 1 + 2 files changed, 6 insertions(+) create mode 100644 src/interrupts.rs diff --git a/src/interrupts.rs b/src/interrupts.rs new file mode 100644 index 00000000..f9b98fd9 --- /dev/null +++ b/src/interrupts.rs @@ -0,0 +1,5 @@ +use x86_64::structures::idt::InterruptDescriptorTable; + +pub fn init_idt() { + let mut idt = InterruptDescriptorTable::new(); +} diff --git a/src/lib.rs b/src/lib.rs index 9d52b3be..2bb61615 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ #![cfg_attr(not(test), no_std)] +pub mod interrupts; pub mod serial; pub mod vga_buffer;