diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-23 03:17:27 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-23 03:17:27 +0000 |
commit | e0312446c475034c7bc9851e8b3497a61a034360 (patch) | |
tree | 6636ba5426f322aa2ff413b43740cba2d94c8a82 /MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c | |
parent | 6055758f8785e163d090fe42d7cf494c65988132 (diff) | |
download | edk2-platforms-e0312446c475034c7bc9851e8b3497a61a034360.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c')
-rw-r--r-- | MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c index 42f0c1a9ae..e9367fb737 100644 --- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c +++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c @@ -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
|