mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-11-03 21:17:23 +01:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									ace74c67ba
								
							
						
					
					
						commit
						6ff84d99d3
					
				@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -137,9 +137,7 @@ InitializePcRtc (
 | 
			
		||||
  EfiInitializeLock (&mModuleGlobal.RtcLock, TPL_CALLBACK);
 | 
			
		||||
 | 
			
		||||
  Status = PcRtcInit (&mModuleGlobal);
 | 
			
		||||
  if (EFI_ERROR (Status)) {
 | 
			
		||||
    return Status;
 | 
			
		||||
  }
 | 
			
		||||
  ASSERT_EFI_ERROR (Status);
 | 
			
		||||
 | 
			
		||||
  gRT->GetTime       = PcRtcEfiGetTime;
 | 
			
		||||
  gRT->SetTime       = PcRtcEfiSetTime;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user