summaryrefslogtreecommitdiffstats
path: root/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-22 06:11:16 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-22 06:11:16 +0000
commit6ff84d99d3d4030ced8f48ef9486c9dc22429eea (patch)
tree7e8d67ec2f8a0021035f75f9d747a05e03e451db /PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
parentace74c67ba8a9ec8a183945a2d4e2f8fa18b3da7 (diff)
downloadedk2-6ff84d99d3d4030ced8f48ef9486c9dc22429eea.tar.gz
edk2-6ff84d99d3d4030ced8f48ef9486c9dc22429eea.tar.bz2
edk2-6ff84d99d3d4030ced8f48ef9486c9dc22429eea.zip
PcAtChipsetPkg: install RTC ARCH protocol even if RTC h/w is functioning incorrectly.
signed-off-by: erictian reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12756 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c')
-rw-r--r--PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
index 292c25def7..b999a2eafe 100644
--- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
+++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
@@ -141,6 +141,11 @@ PcRtcInit (
//
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
if (EFI_ERROR (Status)) {
+ //
+ // Set the variable with default value if the RTC is functioning incorrectly.
+ //
+ Global->SavedTimeZone = EFI_UNSPECIFIED_TIMEZONE;
+ Global->Daylight = 0;
if (!EfiAtRuntime ()) {
EfiReleaseLock (&Global->RtcLock);
}