OvmfPkg/PlatformPei: PeiFv: stop using mPlatformInfoHob
Stop using the mPlatformInfoHob global variable in PeiFvInitialization() function. Pass a pointer to the 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
78c373f2a5
commit
9d9d15b42a
@@ -22,7 +22,7 @@
|
|||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PeiFvInitialization (
|
PeiFvInitialization (
|
||||||
VOID
|
IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN SecureS3Needed;
|
BOOLEAN SecureS3Needed;
|
||||||
@@ -37,7 +37,7 @@ PeiFvInitialization (
|
|||||||
BuildMemoryAllocationHob (
|
BuildMemoryAllocationHob (
|
||||||
PcdGet32 (PcdOvmfPeiMemFvBase),
|
PcdGet32 (PcdOvmfPeiMemFvBase),
|
||||||
PcdGet32 (PcdOvmfPeiMemFvSize),
|
PcdGet32 (PcdOvmfPeiMemFvSize),
|
||||||
mPlatformInfoHob.S3Supported ? EfiACPIMemoryNVS : EfiBootServicesData
|
PlatformInfoHob->S3Supported ? EfiACPIMemoryNVS : EfiBootServicesData
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -45,7 +45,7 @@ PeiFvInitialization (
|
|||||||
//
|
//
|
||||||
BuildFvHob (PcdGet32 (PcdOvmfDxeMemFvBase), PcdGet32 (PcdOvmfDxeMemFvSize));
|
BuildFvHob (PcdGet32 (PcdOvmfDxeMemFvBase), PcdGet32 (PcdOvmfDxeMemFvSize));
|
||||||
|
|
||||||
SecureS3Needed = mPlatformInfoHob.S3Supported && mPlatformInfoHob.SmmSmramRequire;
|
SecureS3Needed = PlatformInfoHob->S3Supported && PlatformInfoHob->SmmSmramRequire;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Create a memory allocation HOB for the DXE FV.
|
// Create a memory allocation HOB for the DXE FV.
|
||||||
|
@@ -372,7 +372,7 @@ InitializePlatform (
|
|||||||
ReserveEmuVariableNvStore ();
|
ReserveEmuVariableNvStore ();
|
||||||
}
|
}
|
||||||
|
|
||||||
PeiFvInitialization ();
|
PeiFvInitialization (&mPlatformInfoHob);
|
||||||
MemTypeInfoInitialization ();
|
MemTypeInfoInitialization ();
|
||||||
MemMapInitialization (&mPlatformInfoHob);
|
MemMapInitialization (&mPlatformInfoHob);
|
||||||
NoexecDxeInitialization ();
|
NoexecDxeInitialization ();
|
||||||
|
@@ -62,7 +62,7 @@ MaxCpuCountInitialization (
|
|||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PeiFvInitialization (
|
PeiFvInitialization (
|
||||||
VOID
|
IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
Reference in New Issue
Block a user