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) {