Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
1 parent
8e0fbfe263
commit
b60ec92388
3 files changed
+14
-10
No files matched your search
@@ -21,4 +21,4 @@ pub extern "x86-interrupt" fn disk2_interrupt_handler(_stack_frame: InterruptSta
|
||||
PICS.lock()
|
||||
.notify_end_of_interrupt(InterruptIndex::HardDisk2.as_u8());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,5 +35,8 @@ pub static PICS: spin::Mutex<ChainedPics> =
|
||||
|
||||
pub fn init_pic() {
|
||||
println!("Initializing PIC");
|
||||
unsafe { PICS.lock().initialize() };
|
||||
unsafe {
|
||||
PICS.lock().initialize();
|
||||
PICS.lock().write_masks(0b10111000, 0b00001110);
|
||||
};
|
||||
}
|
||||