diff options
author | Andrei Warkentin <andrei.warkentin@intel.com> | 2023-02-17 18:44:51 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-08 18:10:34 +0000 |
commit | 5ad2592ab370b6c9030d1239940046bdeec9c2c6 (patch) | |
tree | 295a62746bf284070455f9bf6d1a998b5cea0ef9 /BaseTools/Source/Python/TargetTool | |
parent | db0a3087a535f54f3697e0d658a53bb78d57ce70 (diff) | |
download | edk2-5ad2592ab370b6c9030d1239940046bdeec9c2c6.tar.gz edk2-5ad2592ab370b6c9030d1239940046bdeec9c2c6.tar.bz2 edk2-5ad2592ab370b6c9030d1239940046bdeec9c2c6.zip |
UefiCpuPkg: CpuTimerDxeRiscV64: fix tick duration accounting
The TimerDxe implementation doesn't account for the physical
time passed due to timer handler execution or (perhaps even
more importantly) time spent with interrupts masked.
Other implementations (e.g. like the Arm one) do. If the
timer tick is always incremented at a fixed rate, then
you can slow down UEFI's perception of time by running
long sections of code in a critical section.
Cc: Daniel Schaefer <git@danielschaefer.me>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Andrei Warkentin <andrei.warkentin@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/TargetTool')
0 files changed, 0 insertions, 0 deletions