mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 00:24:07 +02:00
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:
parent
78c373f2a5
commit
9d9d15b42a
@ -22,7 +22,7 @@
|
||||
**/
|
||||
EFI_STATUS
|
||||
PeiFvInitialization (
|
||||
VOID
|
||||
IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
)
|
||||
{
|
||||
BOOLEAN SecureS3Needed;
|
||||
@ -37,7 +37,7 @@ PeiFvInitialization (
|
||||
BuildMemoryAllocationHob (
|
||||
PcdGet32 (PcdOvmfPeiMemFvBase),
|
||||
PcdGet32 (PcdOvmfPeiMemFvSize),
|
||||
mPlatformInfoHob.S3Supported ? EfiACPIMemoryNVS : EfiBootServicesData
|
||||
PlatformInfoHob->S3Supported ? EfiACPIMemoryNVS : EfiBootServicesData
|
||||
);
|
||||
|
||||
//
|
||||
@ -45,7 +45,7 @@ PeiFvInitialization (
|
||||
//
|
||||
BuildFvHob (PcdGet32 (PcdOvmfDxeMemFvBase), PcdGet32 (PcdOvmfDxeMemFvSize));
|
||||
|
||||
SecureS3Needed = mPlatformInfoHob.S3Supported && mPlatformInfoHob.SmmSmramRequire;
|
||||
SecureS3Needed = PlatformInfoHob->S3Supported && PlatformInfoHob->SmmSmramRequire;
|
||||
|
||||
//
|
||||
// Create a memory allocation HOB for the DXE FV.
|
||||
|
@ -372,7 +372,7 @@ InitializePlatform (
|
||||
ReserveEmuVariableNvStore ();
|
||||
}
|
||||
|
||||
PeiFvInitialization ();
|
||||
PeiFvInitialization (&mPlatformInfoHob);
|
||||
MemTypeInfoInitialization ();
|
||||
MemMapInitialization (&mPlatformInfoHob);
|
||||
NoexecDxeInitialization ();
|
||||
|
@ -62,7 +62,7 @@ MaxCpuCountInitialization (
|
||||
|
||||
EFI_STATUS
|
||||
PeiFvInitialization (
|
||||
VOID
|
||||
IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
);
|
||||
|
||||
VOID
|
||||
|
Loading…
x
Reference in New Issue
Block a user