summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
diff options
context:
space:
mode:
authorTuan Phan <tphan@ventanamicro.com>2025-08-18 21:33:07 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-08-29 19:39:47 +0300
commit8bdc0c2a9abcbdedd11f364de0bfc0dca9438c87 (patch)
tree8437e3ce76b06e8046cb0473ac3ddc4102dceba3 /MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
parentd14e964692bafcae129ba91e7537a41f16e18a12 (diff)
downloadedk2-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