From 20515cd1aa640ad62b69883b8f9b546103db502b Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 28 Dec 2006 05:16:21 +0000 Subject: [PATCH] Introduce a new Guid with CName gEfiGenericPlatformVariableGuid to pair with those Unicode String names, which are forbidden to pair with gEfiGlobalVariableGuid according to newest Uefi Spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2145 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkNt32Pkg/Dxe/PlatformBds/Generic/DeviceMngr/DeviceManager.c | 4 ++-- EdkNt32Pkg/Dxe/PlatformBds/PlatformBds.msa | 3 +++ EdkNt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.msa | 3 +++ EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/EdkNt32Pkg/Dxe/PlatformBds/Generic/DeviceMngr/DeviceManager.c b/EdkNt32Pkg/Dxe/PlatformBds/Generic/DeviceMngr/DeviceManager.c index 3f648b7de6..c186fee9a3 100644 --- a/EdkNt32Pkg/Dxe/PlatformBds/Generic/DeviceMngr/DeviceManager.c +++ b/EdkNt32Pkg/Dxe/PlatformBds/Generic/DeviceMngr/DeviceManager.c @@ -76,7 +76,7 @@ Returns: CallbackInfo->Data.VideoBIOS = (UINT8) (UINTN) (((EFI_IFR_DATA_ENTRY *)(DataArray + 1))->Data); gRT->SetVariable ( L"VBIOS", - &gEfiGlobalVariableGuid, + &gEfiGenericPlatformVariableGuid, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_NON_VOLATILE, sizeof (UINT8), &CallbackInfo->Data.VideoBIOS @@ -395,7 +395,7 @@ Returns: // VideoOption = BdsLibGetVariableAndSize ( L"VBIOS", - &gEfiGlobalVariableGuid, + &gEfiGenericPlatformVariableGuid, &VideoOptionSize ); if (NULL == VideoOption) { diff --git a/EdkNt32Pkg/Dxe/PlatformBds/PlatformBds.msa b/EdkNt32Pkg/Dxe/PlatformBds/PlatformBds.msa index 3508095ad7..748340ddd2 100644 --- a/EdkNt32Pkg/Dxe/PlatformBds/PlatformBds.msa +++ b/EdkNt32Pkg/Dxe/PlatformBds/PlatformBds.msa @@ -212,6 +212,9 @@ gEfiGlobalVariableGuid + + gEfiGenericPlatformVariableGuid + gEfiFlashMapHobGuid diff --git a/EdkNt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.msa b/EdkNt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.msa index ae5b9f5ee5..c2f8d5bd16 100644 --- a/EdkNt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.msa +++ b/EdkNt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLib.msa @@ -105,6 +105,9 @@ gEfiShellFileGuid + + gEfiGenericPlatformVariableGuid + EFI_SPECIFICATION_VERSION 0x00020000 diff --git a/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c b/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c index 4748ffca51..f0ac12e0d6 100644 --- a/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c +++ b/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c @@ -376,7 +376,7 @@ Done: gRT->SetVariable ( L"PerfDataMemAddr", - &gEfiGlobalVariableGuid, + &gEfiGenericPlatformVariableGuid, EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, sizeof (UINT32), (VOID *) &mAcpiLowMemoryBase