audk/EmbeddedPkg/Library
Pete Batard 24cf727265 EmbeddedPkg/VirtualRealTimeClockLib: Explicit cast to UINT32
Addresses BZ https://bugzilla.tianocore.org/show_bug.cgi?id=2380 where
explicit casts are required for 64 to 32 bit assignment.

We can apply a straight cast for Time->Nanosecond since we already checked
for overflow.

On the other hand, we may have a frequency that is greater than UINT32_MAX
for Capabilities->Resolution. But using the frequency for the resolution
is the wrong approach anyway, since we can't actually vouch for the actual
resolution of the virtual library. Instead, play it safe by defaulting to
1 Hz, which is what a standard PC-AT CMOS RTC device would use.

Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2020-10-22 13:23:48 +00:00
..
AcpiLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
AndroidBootImgLib EmbeddedPkg: fix gcc build errors in AndroidBootImgLib 2020-07-23 12:05:44 +00:00
CoherentDmaLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
DebugAgentTimerLibNull EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
DxeDtPlatformDtbLoaderLibDefault EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
FdtLib EmbeddedPkg: delete outdated FdtLib README.txt 2019-10-04 11:18:22 +01:00
GdbSerialDebugPortLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
GdbSerialLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
NonCoherentDmaLib EmbeddedPkg/NonCoherentDmaLib: avoid dereferencing bogus buffer address 2020-06-17 18:28:29 +00:00
NorFlashInfoLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
NvVarStoreFormattedLib EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS 2019-04-29 15:34:16 +02:00
PlatformHasAcpiLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
PrePiExtractGuidedSectionLib EmbeddedPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:58 -07:00
PrePiHobLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
PrePiLib EmbeddedPkg: list module-internal header files in INF [Sources] 2019-07-23 00:20:34 +02:00
PrePiMemoryAllocationLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
TemplateRealTimeClockLib EmbeddedPkg: Fix various typos 2019-07-04 12:21:04 +01:00
TemplateResetSystemLib EmbeddedPkg: add missing newline at end of TemplateResetSystemLib.inf 2019-10-04 11:18:22 +01:00
TimeBaseLib EmbeddedPkg: improve TimeBaseLib type safety 2019-06-17 12:04:11 +01:00
VirtualRealTimeClockLib EmbeddedPkg/VirtualRealTimeClockLib: Explicit cast to UINT32 2020-10-22 13:23:48 +00:00