Update the variable name and GUID to set time zone and daylight saving: Use L"RTC" for shorter name and gEfiCallerIdGuid since this variable is private for this driver.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7577 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2009-02-23 03:17:27 +00:00
parent 6055758f87
commit e0312446c4
3 changed files with 4 additions and 9 deletions

View File

@@ -199,8 +199,8 @@ PcRtcInit (
//
DataSize = sizeof (UINT32);
Status = EfiGetVariable (
L"TimerVar",
&gEfiGenericPlatformVariableGuid,
L"RTC",
&gEfiCallerIdGuid,
NULL,
&DataSize,
(VOID *) &TimerVar
@@ -429,8 +429,8 @@ PcRtcSetTime (
TimerVar = Time->Daylight;
TimerVar = (UINT32) ((TimerVar << 16) | Time->TimeZone);
Status = EfiSetVariable (
L"TimerVar",
&gEfiGenericPlatformVariableGuid,
L"RTC",
&gEfiCallerIdGuid,
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE,
sizeof (TimerVar),
&TimerVar