Commit 007b1a60 authored by Stefan Lankes's avatar Stefan Lankes Committed by Stefan Lankes
Browse files

count also timer interrupts

parent 658bbdda
......@@ -380,6 +380,7 @@ impl TaskFrame for Task {
}
extern "x86-interrupt" fn timer_handler(_stack_frame: &mut irq::ExceptionStackFrame) {
increment_irq_counter(apic::TIMER_INTERRUPT_NUMBER.into());
core_scheduler().handle_waiting_tasks();
apic::eoi();
core_scheduler().scheduler();
......@@ -387,4 +388,5 @@ extern "x86-interrupt" fn timer_handler(_stack_frame: &mut irq::ExceptionStackFr
pub fn install_timer_handler() {
idt::set_gate(apic::TIMER_INTERRUPT_NUMBER, timer_handler as usize, 0);
irq::add_irq_name((apic::TIMER_INTERRUPT_NUMBER - 32).into(), "Timer");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment