OvmfPkg/PlatformPei: remove mPlatformInfoHob
Stop using the mPlatformInfoHob global variable. Let BuildPlatformInfoHob() allocate and return PlatformInfoHob instead. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Tom Lendacky <thomas.lendacky@amd.com> Acked-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
committed by
mergify[bot]
parent
4bc2c74851
commit
862614e254
@@ -13,8 +13,6 @@
|
||||
#include <Library/PlatformInitLib.h>
|
||||
#include <IndustryStandard/IntelTdx.h>
|
||||
|
||||
extern EFI_HOB_PLATFORM_INFO mPlatformInfoHob;
|
||||
|
||||
VOID
|
||||
AddressWidthInitialization (
|
||||
IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
@@ -98,7 +96,7 @@ IntelTdxInitialize (
|
||||
/**
|
||||
* @brief Builds PlatformInfo Hob
|
||||
*/
|
||||
VOID
|
||||
EFI_HOB_PLATFORM_INFO *
|
||||
BuildPlatformInfoHob (
|
||||
VOID
|
||||
);
|
||||
|
Reference in New Issue
Block a user