From e0312446c475034c7bc9851e8b3497a61a034360 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 23 Feb 2009 03:17:27 +0000 Subject: 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 --- MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c') 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 -- cgit v1.2.3