diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2015-07-07 05:41:43 +0000 |
---|---|---|
committer | niruiyu <niruiyu@Edk2> | 2015-07-07 05:41:43 +0000 |
commit | 3e2744e41f07066bfa72e77c150251b5d59ca5cc (patch) | |
tree | c561267eb3b9453ea48b6aa0444a9a79330a4916 /PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe | |
parent | 4d5b08684f08db04ee95cf94f913135e1eecd0f7 (diff) | |
download | edk2-platforms-3e2744e41f07066bfa72e77c150251b5d59ca5cc.tar.xz |
PcRtc: Fix PcRtcInit() to not clear RegisterB Hour Format bit (BIT1) sometimes
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@17848 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe')
-rw-r--r-- | PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c index 9ec309c6b9..5abb71c032 100644 --- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c +++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c @@ -166,7 +166,8 @@ PcRtcInit ( // Set RTC configuration after get original time
// The value of bit AIE should be reserved.
//
- RtcWrite (RTC_ADDRESS_REGISTER_B, (UINT8)(RTC_INIT_REGISTER_B | (RegisterB.Data & BIT5)));
+ RegisterB.Data = RTC_INIT_REGISTER_B | (RegisterB.Data & BIT5);
+ RtcWrite (RTC_ADDRESS_REGISTER_B, RegisterB.Data);
//
// Release RTC Lock.
|