mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2026-02-05 22:59:32 +00:00
LibGetTime():
- Two variables were used for the epoch, where only one should have been [*].
- Also harmonize variable name to match the one used in LibSetTime.
LibSetTime():
- Address possible underflows if time is set to start of epoch.
- Ensure that time being read does actually match time that was manually
set (plus the time elapsed since), by subtracting number of seconds
since reset.
[*] This fixes a build breakage, since one of these variables was set but
never used, triggering a compiler diagnostic at some optimization levels.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
|
||
|---|---|---|
| .. | ||
| AcpiLib | ||
| AndroidBootImgLib | ||
| CoherentDmaLib | ||
| DebugAgentTimerLibNull | ||
| DxeDtPlatformDtbLoaderLibDefault | ||
| FdtLib | ||
| GdbSerialDebugPortLib | ||
| GdbSerialLib | ||
| NonCoherentDmaLib | ||
| NorFlashInfoLib | ||
| NvVarStoreFormattedLib | ||
| PlatformHasAcpiLib | ||
| PrePiExtractGuidedSectionLib | ||
| PrePiHobLib | ||
| PrePiLib | ||
| PrePiMemoryAllocationLib | ||
| TemplateRealTimeClockLib | ||
| TemplateResetSystemLib | ||
| TimeBaseLib | ||
| VirtualRealTimeClockLib | ||