We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa0b88 commit d076b00Copy full SHA for d076b00
Kernel/Time/APICTimer.cpp
@@ -112,7 +112,7 @@ bool APICTimer::calibrate(HardwareTimerBase& calibration_source)
112
113
disable_local_timer();
114
115
- auto delta_apic_count = end_apic_count - start_apic_count;
+ auto delta_apic_count = start_apic_count - end_apic_count; // The APIC current count register decrements!
116
m_timer_period = (delta_apic_count * apic.get_timer_divisor()) / ticks_in_100ms;
117
118
auto apic_freq = (delta_apic_count * apic.get_timer_divisor()) / apic.get_timer_divisor();
0 commit comments