mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformPei: MemTypeInfo: stop using mPlatformInfoHob
Stop using the mPlatformInfoHob global variable in MemTypeInfoInitialization() 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
27874a382c
commit
cc6efda777
|
@ -203,12 +203,12 @@ STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR mReadOnlyVariable2Notify = {
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
MemTypeInfoInitialization (
|
MemTypeInfoInitialization (
|
||||||
VOID
|
IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
if (!mPlatformInfoHob.SmmSmramRequire) {
|
if (!PlatformInfoHob->SmmSmramRequire) {
|
||||||
//
|
//
|
||||||
// EFI_PEI_READ_ONLY_VARIABLE2_PPI will never be available; install
|
// EFI_PEI_READ_ONLY_VARIABLE2_PPI will never be available; install
|
||||||
// the default memory type information HOB right away.
|
// the default memory type information HOB right away.
|
||||||
|
|
|
@ -373,7 +373,7 @@ InitializePlatform (
|
||||||
}
|
}
|
||||||
|
|
||||||
PeiFvInitialization (&mPlatformInfoHob);
|
PeiFvInitialization (&mPlatformInfoHob);
|
||||||
MemTypeInfoInitialization ();
|
MemTypeInfoInitialization (&mPlatformInfoHob);
|
||||||
MemMapInitialization (&mPlatformInfoHob);
|
MemMapInitialization (&mPlatformInfoHob);
|
||||||
NoexecDxeInitialization ();
|
NoexecDxeInitialization ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ PeiFvInitialization (
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
MemTypeInfoInitialization (
|
MemTypeInfoInitialization (
|
||||||
VOID
|
IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in New Issue