audk/PcAtChipsetPkg
Ruiyu Ni fe32096778 PcAtChipsetPkg/PcRtc: Fix a Y2K bug
The original driver cannot handle the case when system time runs from 1999/12/31 23:59:59
to 2000/1/1 0:0:0.
A simple test to set system time to 1999/12/31 23:59:59 can expose this bug.
The patch limits the driver to only support year in 100 range and decide the century value based
on the supporting range: Century either equals to PcdMinimalYear / 100 or equals to PcdMinimalYear / 100 + 1.

The patch passed the Y2K test.
However with year range [1998, 2097], when system time is 2097/12/31 23:59:59,
the next second system time will become 1998/1/1 0:0:0. I think it's a acceptable limitation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17624 6f19259b-4bc3-4df7-8a09-765794883524
2015-06-11 07:14:18 +00:00
..
8254TimerDxe PcAtChipsetPkg: Convert non DOS format files to DOS format and rename the same module name. 2014-09-03 08:48:29 +00:00
8259InterruptControllerDxe PcAtChipsetPkg: Refine the format of meta data files. 2015-01-20 07:31:57 +00:00
Bus/Pci/IdeControllerDxe PcAtChipsetPkg: Refine the format of meta data files. 2015-01-20 07:31:57 +00:00
HpetTimerDxe PcAtChipsetPkg: Refine the format of meta data files. 2015-01-20 07:31:57 +00:00
Include Add "#ifdef ... #define ... #endif" check for the header file. 2011-09-07 02:42:52 +00:00
IsaAcpiDxe PcAtChipsetPkg: Refine the format of meta data files. 2015-01-20 07:31:57 +00:00
KbcResetDxe PcAtChipsetPkg: Convert non DOS format files to DOS format and rename the same module name. 2014-09-03 08:48:29 +00:00
Library PcAtChipsetPkg: Update BaseAcpiTimerLib 2015-02-28 05:34:38 +00:00
PcatRealTimeClockRuntimeDxe PcAtChipsetPkg/PcRtc: Fix a Y2K bug 2015-06-11 07:14:18 +00:00
PciHostBridgeDxe PcAtChipsetPkg/PciHostBridgeDxe: drop PciAddress, PciData 2015-02-23 16:02:39 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
PcAtChipsetPkg.dec PcAtChipsetPkg/PcRtc: Fix a Y2K bug 2015-06-11 07:14:18 +00:00
PcAtChipsetPkg.dsc PcAtChipsetPkg: new AcpiTimerLib libraries. 2014-08-14 14:30:32 +00:00
PcAtChipsetPkg.uni PcAtChipsetPkg: Update BaseAcpiTimerLib 2015-02-28 05:34:38 +00:00
PcAtChipsetPkgExtra.uni PcAtChipsetPkg: INF/DEC file updates to EDK II packages 2014-08-28 05:19:28 +00:00