diff options
| author | Tuan Phan <tphan@ventanamicro.com> | 2025-08-18 21:33:07 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-08-29 19:39:47 +0300 |
| commit | 8bdc0c2a9abcbdedd11f364de0bfc0dca9438c87 (patch) | |
| tree | 8437e3ce76b06e8046cb0473ac3ddc4102dceba3 /MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf | |
| parent | d14e964692bafcae129ba91e7537a41f16e18a12 (diff) | |
| download | edk2-8bdc0c2a9abcbdedd11f364de0bfc0dca9438c87.tar.xz | |
UefiCpuPkg/BaseRiscV64CpuTimerLib: Ensure mTimeBase is initialized
In early boot phases (SEC/PEI), CpuTimerLib may be used before
GetPerformanceCounterProperties() is called, leaving mTimeBase
uninitialized. This can result in divide-by-zero errors or incorrect
timeouts.
To fix this, check if mTimeBase is set before using it and initialize it
via GetPerformanceCounterProperties() if necessary.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
Diffstat (limited to 'MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf')
0 files changed, 0 insertions, 0 deletions
