Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: a6013625a3d7d949571fdc2cc4fc5905f37a0023
https://github.com/tianocore/edk2/commit/a6013625a3d7d949571fdc2cc4fc5905f37a0023
Author: Michael D Kinney <[email protected]>
Date: 2024-01-29 (Mon, 29 Jan 2024)
Changed paths:
M PcAtChipsetPkg/HpetTimerDxe/HpetTimer.c
Log Message:
-----------
PcAtChipsetPkg/HpetTimerDxe: Fix nested interrupt time accuracy
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4659
When HPET timer is used as the timer interrupt and nested
interrupts into the HPET timer interrupt handler occur, the
elapsed time passed into the DXE Core is sometime too large
and this causes the DXE Core internal system time to run too
fast. Fix the logic so the previous main counter value stored
in the module global variable mPreviousMainCounter is always
captured before the timer notification function is called.
Without this change, mPreviousMainCounter is updated after
the timer notification function is called and when nesting
occurs, it updates with the value from the first level of
nesting which is further back in time than the interrupt from
the deepest level of nesting. This causes the next two timer
interrupts to compute a TimerPeriod that is twice the actual
time period since the last interrupt and this causes the DXE
Core internal time to run faster than expected.
Cc: Ray Ni <[email protected]>
Signed-off-by: Michael D Kinney <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits