Initial commit
This commit is contained in:
10
code/apictimer_trigger.cpp
Normal file
10
code/apictimer_trigger.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user