JuliOS/src/interrupts/pic/pit.rs
Julien CLEMENT d14ad3a912
All checks were successful
continuous-integration/drone/push Build is passing
feat(pic): create pit module
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2022-04-21 16:47:56 +02:00

11 lines
307 B
Rust

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());
}
}