Revision: 17848
http://sourceforge.net/p/edk2/code/17848
Author: niruiyu
Date: 2015-07-07 05:41:43 +0000 (Tue, 07 Jul 2015)
Log Message:
-----------
PcRtc: Fix PcRtcInit() to not clear RegisterB Hour Format bit (BIT1) sometimes
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Feng Tian <[email protected]>
Modified Paths:
--------------
trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
Modified: trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
===================================================================
--- trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
2015-07-07 04:37:07 UTC (rev 17847)
+++ trunk/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
2015-07-07 05:41:43 UTC (rev 17848)
@@ -166,7 +166,8 @@
// 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.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits