feat(pic): create pit module
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-04-21 16:47:56 +02:00
1 parent bdf28e38f4
commit d14ad3a912
3 files changed
+14 -7

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
use super::{PICS, InterruptIndex};
use x86_64::structures::idt::InterruptStackFrame;
pub extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: InterruptStackFrame) {
// print!(".");
unsafe {
PICS.lock()
.notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.