diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-12-02 14:10:06 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-14 17:45:41 +0000 |
commit | f6a196c7eb34affff0cfe1864e126953096885e1 (patch) | |
tree | 196f78f07410c849005d586081f2a9e84ad82aef /OvmfPkg/PlatformPei/Platform.c | |
parent | 862614e2544997c848fab7388733774ae0ea92d8 (diff) | |
download | edk2-f6a196c7eb34affff0cfe1864e126953096885e1.tar.gz edk2-f6a196c7eb34affff0cfe1864e126953096885e1.tar.bz2 edk2-f6a196c7eb34affff0cfe1864e126953096885e1.zip |
OvmfPkg/PlatformPei: remove mFeatureControlValue
Use PlatformInfoHob->FeatureControlValue instead.
OnMpServicesAvailable() will find PlatformInfoHob using
GetFirstGuidHob() and pass a pointer to the WriteFeatureControl
callback.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg/PlatformPei/Platform.c')
-rw-r--r-- | OvmfPkg/PlatformPei/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index ebce2ba129..148240342b 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -396,7 +396,7 @@ InitializePlatform ( }
IntelTdxInitialize ();
- InstallFeatureControlCallback ();
+ InstallFeatureControlCallback (PlatformInfoHob);
return EFI_SUCCESS;
}
|