diff --git a/MdeModulePkg/Include/VariableFormat.h b/MdeModulePkg/Include/VariableFormat.h index 798bc411c3..ac25b0c1f6 100644 --- a/MdeModulePkg/Include/VariableFormat.h +++ b/MdeModulePkg/Include/VariableFormat.h @@ -17,12 +17,15 @@ #define VARIABLE_STORE_SIGNATURE EFI_SIGNATURE_32 ('$', 'V', 'S', 'S') +#ifndef MAX_VARIABLE_SIZE #define MAX_VARIABLE_SIZE FixedPcdGet32(PcdMaxVariableSize) - +#endif // // Enlarges the hardware error record maximum variable size to 32K bytes // +#ifndef MAX_HARDWARE_ERROR_VARIABLE_SIZE #define MAX_HARDWARE_ERROR_VARIABLE_SIZE FixedPcdGet32(PcdMaxHardwareErrorVariableSize) +#endif #define VARIABLE_DATA 0x55AA diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c index 89f9cf60f7..46db7c980b 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c @@ -175,24 +175,6 @@ PlatOverMngrInit ( ZeroMem (mControllerToken, MAX_CHOICE_NUM * sizeof (EFI_STRING_ID)); ZeroMem (mDriverImageProtocol, MAX_CHOICE_NUM * sizeof (EFI_LOADED_IMAGE_PROTOCOL *)); - // - // Show the page - // - Status = FormBrowser2->SendForm ( - FormBrowser2, - &CallbackInfo->RegisteredHandle, - 1, - NULL, - 0, - NULL, - NULL - ); - - Status = HiiDatabase->RemovePackageList (HiiDatabase, CallbackInfo->RegisteredHandle); - if (EFI_ERROR (Status)) { - return Status; - } - return EFI_SUCCESS; } diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.inf b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.inf index 9fb499ae84..0aba22113a 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.inf +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.inf @@ -19,7 +19,7 @@ INF_VERSION = 0x00010005 BASE_NAME = PlatOverMngr FILE_GUID = 56D95BFE-F991-4898-B3BE-B8F37C927F48 - MODULE_TYPE = UEFI_APPLICATION + MODULE_TYPE = DXE_DRIVER VERSION_STRING = 1.0 EDK_RELEASE_VERSION = 0x00020000 EFI_SPECIFICATION_VERSION = 0x00020000 @@ -47,7 +47,7 @@ [LibraryClasses] BaseLib UefiBootServicesTableLib - UefiApplicationEntryPoint + UefiDriverEntryPoint UefiLib DebugLib PlatDriOverLib diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.c b/MdePkg/Library/DxePcdLib/DxePcdLib.c index b76730f425..43dcf90793 100644 --- a/MdePkg/Library/DxePcdLib/DxePcdLib.c +++ b/MdePkg/Library/DxePcdLib/DxePcdLib.c @@ -514,7 +514,7 @@ LibPcdSet64 ( maximum size supported by TokenNumber and return NULL to indicate that the set operation was not actually performed. - If SizeOfValue > 0 and Buffer is NULL, then ASSERT(). + If SizeOfBuffer > 0 and Buffer is NULL, then ASSERT(). @param[in] TokenNumber The PCD token number to set a current value for. @param[in, out] SizeOfBuffer The size, in bytes, of Buffer.