# This package is designed to public interfaces and implementation which follows\r
# PcAt defacto standard.\r
#\r
-# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
## This PCD specifies the base address of the IO APIC.\r
# @Prompt IO APIC base address.\r
gPcAtChipsetPkgTokenSpaceGuid.PcdIoApicBaseAddress|0xFEC00000|UINT32|0x0000000C\r
+\r
+ ## This PCD specifies the minimal valid year in RTC.\r
+ # @Prompt Minimal valid year in RTC.\r
+ gPcAtChipsetPkgTokenSpaceGuid.PcdMinimalValidYear|1998|UINT16|0x0000000D\r
+\r
+ ## This PCD specifies the maximal valid year in RTC.\r
+ # @Prompt Maximal valid year in RTC.\r
+ gPcAtChipsetPkgTokenSpaceGuid.PcdMaximalValidYear|2099|UINT16|0x0000000E\r
\r
[PcdsFixedAtBuild, PcdsPatchableInModule]\r
## Defines the ACPI register set base address.\r
/** @file\r
RTC Architectural Protocol GUID as defined in DxeCis 0.96.\r
\r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
IN EFI_TIME *Time\r
)\r
{\r
- if (Time->Year < 1998 ||\r
- Time->Year > 2099 ||\r
+ if (Time->Year < PcdGet16 (PcdMinimalValidYear) ||\r
+ Time->Year > PcdGet16 (PcdMaximalValidYear) ||\r
Time->Month < 1 ||\r
Time->Month > 12 ||\r
(!DayValid (Time)) ||\r
[Packages]\r
MdePkg/MdePkg.dec\r
MdeModulePkg/MdeModulePkg.dec\r
+ PcAtChipsetPkg/PcAtChipsetPkg.dec\r
\r
[LibraryClasses]\r
UefiRuntimeServicesTableLib\r
\r
[Pcd]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout ## CONSUMES\r
+ gPcAtChipsetPkgTokenSpaceGuid.PcdMinimalValidYear ## CONSUMES\r
+ gPcAtChipsetPkgTokenSpaceGuid.PcdMaximalValidYear ## CONSUMES\r
+\r
[UserExtensions.TianoCore."ExtraFiles"]\r
PcRtcExtra.uni\r