Skip to main content

kernel/arch/x86_64/interrupts/irqs/
irq0_timer.rs

1// SPDX-License-Identifier: GPL-3.0-only
2//! IRQ0 handler — the 8253/8254 Programmable Interval Timer (PIT) tick.
3//!
4//! Authors: MarioS271
5
6use crate::arch::x86_64::interrupts::pic;
7use x86_64::structures::idt::InterruptStackFrame;
8
9/// Acknowledge the timer tick and send EOI to the master PIC.
10pub extern "x86-interrupt" fn handler(
11    _: InterruptStackFrame
12) {
13    pic::end_of_interrupt(pic::PIC_MASTER_OFFSET + 0);
14}