Reviewed-by: Feng Tian <[email protected]>

-----Original Message-----
From: Ni, Ruiyu 
Sent: Monday, July 6, 2015 2:50 PM
To: [email protected]
Cc: Tian, Feng
Subject: RE: [Patch] PcRtc: Fix PcRtcInit() to not clear RegisterB.AIE always

Fix comments as below:
PcRtc: Fix PcRtcInit() to use correct value for RegisterB

> -----Original Message-----
> From: Ni, Ruiyu
> Sent: Monday, July 6, 2015 2:39 PM
> To: [email protected]
> Cc: Ni, Ruiyu; Tian, Feng
> Subject: [Patch] PcRtc: Fix PcRtcInit() to not clear RegisterB.AIE 
> always
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Ruiyu Ni <[email protected]>
> Cc: Feng Tian <[email protected]>
> ---
>  PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
> b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
> index 9ec309c..5abb71c 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.
> --
> 1.9.5.msysgit.1


------------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to