Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: e9e61671237e10f7d7672ff74e8907941a954c1d
      
https://github.com/tianocore/edk2/commit/e9e61671237e10f7d7672ff74e8907941a954c1d
  Author: Michael D Kinney <michael.d.kin...@intel.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

  Changed paths:
    M PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c

  Log Message:
  -----------
  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.

https://github.com/tianocore/edk2/commit/d55d73152ebf5c793b645d6ec5bc517d219881cd

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...@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to