audk/EmbeddedPkg/Library
Pete Batard 1342d7679e EmbeddedPkg/VirtualRealTimeClockLib: Fix correctness issues
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>
2019-02-26 08:32:37 +01:00
..
AcpiLib
AndroidBootImgLib EmbeddedPkg: AndroidBootApp: fix clang compilation 2017-12-06 21:39:51 +00:00
CoherentDmaLib EmbeddedPkg/CoherentDmaLib: Add missing checks to DmaMap 2018-09-07 12:23:32 +02:00
DebugAgentTimerLibNull
DxeDtPlatformDtbLoaderLibDefault EmbeddedPkg: add base DtPlatformDtbLoaderLib implementation 2017-03-31 13:17:55 +01:00
FdtLib EmbeddedPkg/FdtLib: incorporate missing overlay support 2018-02-21 10:53:08 +00:00
GdbSerialDebugPortLib
GdbSerialLib EmbeddedPkg/GdbSerialLib: avoid left shift of negative quantity 2018-06-19 00:05:26 +02:00
NonCoherentDmaLib EmbeddedPkg: implement NonCoherentDmaLib based on ArmDmaLib 2017-08-30 14:13:30 +01:00
NorFlashInfoLib EmbeddedPkg/NorFlashInfoLib: convert to BASE library 2019-01-16 21:37:10 +01:00
NvVarStoreFormattedLib EmbeddedPkg: introduce NvVarStoreFormattedLib 2018-04-12 21:24:30 +02:00
PlatformHasAcpiLib MdeModulePkg: move PlatformHasAcpiGuid from EmbeddedPkg 2017-04-05 16:59:13 +01:00
PrePiExtractGuidedSectionLib EmbeddedPkg: Correct the way of handling sections with a large size 2018-03-13 15:26:09 +00:00
PrePiHobLib EmbeddedPkg/PrePiHobLib: drop CreateHobList() from library 2018-11-29 18:52:14 +01:00
PrePiLib EmbeddedPkg/PrePiLib: drop unused PCD reference 2018-11-29 18:57:48 +01:00
PrePiMemoryAllocationLib EmbeddedPkg/PrePiMemoryAllocationLib: Added AllocateZeroPool() 2018-11-29 08:35:10 +08:00
TemplateRealTimeClockLib
TemplateResetSystemLib
TimeBaseLib EmbeddedPkg/TimeBaseLib: Add function to get Week day. 2018-06-05 16:18:21 +01:00
VirtualRealTimeClockLib EmbeddedPkg/VirtualRealTimeClockLib: Fix correctness issues 2019-02-26 08:32:37 +01:00