mirror of https://github.com/acidanthera/audk.git
24cf727265
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> |
||
---|---|---|
.. | ||
Application | ||
Drivers | ||
EmbeddedMonotonicCounter | ||
GdbStub | ||
Include | ||
Library | ||
MetronomeDxe | ||
RealTimeClockRuntimeDxe | ||
ResetRuntimeDxe | ||
Scripts/LauterbachT32 | ||
SimpleTextInOutSerial | ||
Universal/MmcDxe | ||
EmbeddedPkg.dec | ||
EmbeddedPkg.dsc |