summaryrefslogtreecommitdiff
path: root/kernel/src/interrupts/interrupt_handlers.rs
blob: f05e2dcabdb000a7ab47f46ce26f09d2b2b60f05 (plain)
1
2
3
4
5
6
7
8
9
use super::InterruptType;
use crate::io::qemu;
use x86_64::structures::idt::{InterruptStackFrame, PageFaultErrorCode};

pub extern "x86-interrupt" fn timer_handler(stack_frame: &mut InterruptStackFrame) {
    panic!("Timer interrupt recieved\n\n");

    super::apic::get_local_apic().map(|apic| apic.end_of_interrupt())
}