11 lines
355 B
C++
11 lines
355 B
C++
// Excerpt from the APIC timer interrupt handler
|
|
void ApicTimer::trigger(const InterruptFrame &frame) {
|
|
if (cpuId != LocalApic::getId()) {
|
|
// Abort if the handler doesn't belong to the current CPU
|
|
return;
|
|
}
|
|
|
|
// Increase the "core-local" time
|
|
time.addNanoseconds(timerInterval * 1'000'000); // Interval is in milliseconds
|
|
}
|