audk/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe
Michael D Kinney e9e6167123 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe: PcdRtcDefaultYear bounds
Add bounds checks of PcdRtcDefaultYear to guarantee that the year
is always between PcdMinimalValidYear and PcdMaximalValidYear.
This is required to make the following commit a backwards compatible
change and guarantee and invalid year is never set.

d55d73152e

This is required because use of an expression in the DEC file
PCD default value is only used to determine the DEC default values.
If an INF/DSC overrides PcdRtcDefaultYear, then the DEC expression
for PcdMinimalValidYear is not applied again.

Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2023-03-30 16:49:05 +00:00
..
PcRtc.c PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe: PcdRtcDefaultYear bounds 2023-03-30 16:49:05 +00:00
PcRtc.h PcAtChipsetPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PcRtc.uni PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
PcRtcEntry.c PcAtChipsetPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PcRtcExtra.uni PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
PcatRealTimeClockRuntimeDxe.inf PcAtChipsetPkg: Add PCD for RTC default year 2023-03-27 06:19:04 +00:00