11 lines
307 B
Rust
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());
|
||
|
}
|
||
|
}
|