audk/EmbeddedPkg
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
..
Application EmbeddedPkg/AndroidFastbootApp: only use ENTER or SPACE to exit 2018-08-24 15:44:18 +01:00
Drivers EmbeddedPkg/VirtualKeyboard: Avoid notification called more than once 2018-09-14 10:18:31 +08:00
EmbeddedMonotonicCounter ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
GdbStub EmbeddedPkg: Fix typos in comments 2016-10-19 16:31:58 +01:00
Include EmbeddedPkg/PrePiLib: Correct function name 2019-02-01 11:30:02 +01:00
Library EmbeddedPkg/VirtualRealTimeClockLib: Fix correctness issues 2019-02-26 08:32:37 +01:00
MetronomeDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
RealTimeClockRuntimeDxe EmbeddedPkg/RealTimeClockRuntimeDxe: move common functionality into core 2017-11-13 13:33:26 +00:00
ResetRuntimeDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
Scripts/LauterbachT32 EmbeddedPkg: Rectify file modes 2016-02-02 11:42:51 +00:00
SimpleTextInOutSerial ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
Universal/MmcDxe EmbeddedPkg: Fix Command Argument for SD/eMMC R/W operation. 2019-01-30 17:47:26 +00:00
EmbeddedPkg.dec EmbeddedPkg/EmbeddedPkg.dec: drop PcdPrePiCpuMemorySize declarations 2018-11-30 22:43:20 +01:00
EmbeddedPkg.dsc EmbeddedPkg/Library: Add VirtualRealTimeClockLib 2019-02-15 11:07:08 +01:00