From c2d22af1c772c30936b9f9efbf00fbac837941b1 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 18 Apr 2017 15:09:03 +0200 Subject: [PATCH] Create a new interrupts module --- src/interrupts.rs | 5 +++++ src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/interrupts.rs diff --git a/src/interrupts.rs b/src/interrupts.rs new file mode 100644 index 0000000..7a3beeb --- /dev/null +++ b/src/interrupts.rs @@ -0,0 +1,5 @@ +use x86_64::structures::idt::Idt; + +pub fn init() { + let mut idt = Idt::new(); +} diff --git a/src/lib.rs b/src/lib.rs index 9690d5e..efdff65 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,10 +21,10 @@ extern crate x86_64; #[macro_use] extern crate once; extern crate linked_list_allocator; - #[macro_use] mod vga_buffer; mod memory; +mod interrupts; #[no_mangle] pub extern "C" fn rust_main(multiboot_information_address: usize) {