OvmfPkg/PlatformPei Q35 SMM helpers: stop using mPlatformInfoHob
Stop using the mPlatformInfoHob global variable in Q35TsegMbytesInitialization() and Q35SmramAtDefaultSmbaseInitialization() ) functions. 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
9d9d15b42a
commit
00743d144b
@@ -357,8 +357,8 @@ InitializePlatform (
|
||||
|
||||
if (mPlatformInfoHob.SmmSmramRequire) {
|
||||
Q35BoardVerification ();
|
||||
Q35TsegMbytesInitialization ();
|
||||
Q35SmramAtDefaultSmbaseInitialization ();
|
||||
Q35TsegMbytesInitialization (&mPlatformInfoHob);
|
||||
Q35SmramAtDefaultSmbaseInitialization (&mPlatformInfoHob);
|
||||
}
|
||||
|
||||
PublishPeiMemory ();
|
||||
|
Reference in New Issue
Block a user