summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-23 03:17:27 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-23 03:17:27 +0000
commite0312446c475034c7bc9851e8b3497a61a034360 (patch)
tree6636ba5426f322aa2ff413b43740cba2d94c8a82 /MdeModulePkg/Universal
parent6055758f8785e163d090fe42d7cf494c65988132 (diff)
downloadedk2-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')
-rw-r--r--MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c8
-rw-r--r--MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h1
-rw-r--r--MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf4
3 files changed, 4 insertions, 9 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
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
index 7b6c1c1002..5beb075691 100644
--- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
+++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
@@ -20,7 +20,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Uefi.h>
#include <Protocol/RealTimeClock.h>
-#include <Guid/GenericPlatformVariable.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
index 4f28e13e10..e9cdf48fd6 100644
--- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
+++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
@@ -52,10 +52,6 @@
BaseLib
PcdLib
-[Guids]
- gEfiGenericPlatformVariableGuid ## PRODUCES ##Variable:L"TimerVar"
- gEfiGenericPlatformVariableGuid ## CONSUMES ##Variable:L"TimerVar"
-
[Protocols]
gEfiRealTimeClockArchProtocolGuid ## PRODUCES