From e56187913724379012649c0411668f94ac2ffd9f Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 9 Jan 2009 06:26:42 +0000 Subject: Add INF extension Information git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7228 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/PCD/Pei/Pcd.inf | 10 +++++----- MdeModulePkg/Universal/PCD/Pei/Service.c | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'MdeModulePkg/Universal/PCD') diff --git a/MdeModulePkg/Universal/PCD/Pei/Pcd.inf b/MdeModulePkg/Universal/PCD/Pei/Pcd.inf index 01acc1d42d..44e426e11c 100644 --- a/MdeModulePkg/Universal/PCD/Pei/Pcd.inf +++ b/MdeModulePkg/Universal/PCD/Pei/Pcd.inf @@ -47,13 +47,13 @@ DebugLib [Guids] - gPcdPeiCallbackFnTableHobGuid # ALWAYS_PRODUCED Hob: GUID_EXTENSION - gPcdDataBaseHobGuid # ALWAYS_PRODUCED Hob: GUID_EXTENSION - + gPcdPeiCallbackFnTableHobGuid ## RPIVATE ## Hob + gPcdDataBaseHobGuid ## PRODUCED ## Hob + gPcdDataBaseHobGuid ## CONSUMED ## Hob [Ppis] - gEfiPeiReadOnlyVariable2PpiGuid # PPI ALWAYS_CONSUMED - gPcdPpiGuid # PPI ALWAYS_PRODUCED + gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMED + gPcdPpiGuid ## PRODUCED [FeaturePcd.common] gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseSetEnabled diff --git a/MdeModulePkg/Universal/PCD/Pei/Service.c b/MdeModulePkg/Universal/PCD/Pei/Service.c index ce646edc7b..4bd3c6150a 100644 --- a/MdeModulePkg/Universal/PCD/Pei/Service.c +++ b/MdeModulePkg/Universal/PCD/Pei/Service.c @@ -167,9 +167,8 @@ GetHiiVariable ( &Size, NULL ); - if (Status == EFI_BUFFER_TOO_SMALL) { - + if (Status == EFI_BUFFER_TOO_SMALL) { Status = PeiServicesAllocatePool (Size, &Buffer); ASSERT_EFI_ERROR (Status); @@ -187,7 +186,7 @@ GetHiiVariable ( *VariableData = Buffer; return EFI_SUCCESS; - } + } return EFI_NOT_FOUND; } -- cgit v1.2.3