]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PcAtChipsetPkg/PcRtc: Fix GCC build failure.
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 23 Dec 2015 02:23:54 +0000 (02:23 +0000)
committerniruiyu <niruiyu@Edk2>
Wed, 23 Dec 2015 02:23:54 +0000 (02:23 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19477 6f19259b-4bc3-4df7-8a09-765794883524

PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c

index 6f2a987f22043715df96b359f948c89ec7907047..1cfb0cb1988940f2c37466c1687303745810bd1b 100644 (file)
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "PcRtc.h"\r
 \r
-PC_RTC_MODULE_GLOBALS  mModuleGlobal = { 0 };\r
+PC_RTC_MODULE_GLOBALS  mModuleGlobal;\r
 \r
 EFI_HANDLE             mHandle = NULL;\r
 \r
@@ -135,6 +135,7 @@ InitializePcRtc (
   EFI_EVENT   Event;\r
 \r
   EfiInitializeLock (&mModuleGlobal.RtcLock, TPL_CALLBACK);\r
+  mModuleGlobal.CenturyRtcAddress = 0;\r
 \r
   Status = PcRtcInit (&mModuleGlobal);\r
   ASSERT_EFI_ERROR (Status);\r