mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Create a new interrupts module
This commit is contained in:
5
src/interrupts.rs
Normal file
5
src/interrupts.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
use x86_64::structures::idt::Idt;
|
||||||
|
|
||||||
|
pub fn init() {
|
||||||
|
let mut idt = Idt::new();
|
||||||
|
}
|
||||||
@@ -21,10 +21,10 @@ extern crate x86_64;
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate once;
|
extern crate once;
|
||||||
extern crate linked_list_allocator;
|
extern crate linked_list_allocator;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod vga_buffer;
|
mod vga_buffer;
|
||||||
mod memory;
|
mod memory;
|
||||||
|
mod interrupts;
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rust_main(multiboot_information_address: usize) {
|
pub extern "C" fn rust_main(multiboot_information_address: usize) {
|
||||||
|
|||||||
Reference in New Issue
Block a user